home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 28 / MF_UK_28_1.iso / mac / Shareware in MacFormat / TarotWorks 1.1.4 / Tarot Plug-Ins / Data B < prev    next >
MacBinary  |  1995-05-24  |  254.6 KB  |  [TarR/TarO]

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Data B

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
100% file MacBinary II, inited, busy, system, Sun Jul 4 12:55:51 1993, modified Wed May 24 03:06:34 1995, creator 'TarO', type 'TarR', 32224 bytes "Data B" , at 0x7e60 228271 bytes resource default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-4K) default (weak)
33% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TarR]
macFileCreator[TarO]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 44 61 74 61 20 42 | 00 00 00 00 00 00 00 00 |..Data B|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 61 72 52 54 61 72 | 4f 15 00 00 00 00 00 00 |.TarRTar|O.......|
|00000050| 00 00 00 00 00 7d e0 00 | 03 7b af a8 5c bc 17 ab |.....}..|.{..\...|
|00000060| e8 8b 7a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..z.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 46 6a 00 00 |........|....Fj..|
|00000080| 00 00 6e 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..n.STAK|........|
|00000090| 00 00 00 0a 00 00 7d e0 | 00 00 6e 00 00 00 00 00 |......}.|..n.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a b4 00 00 00 01 |........|........|
|000000b0| 00 00 0b c3 00 00 11 87 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 10 c7 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 20 80 00 | 02 20 80 00 02 20 80 00 |..... ..|. ... ..|
|000000f0| de a7 ab f4 00 00 00 00 | 00 b8 00 e0 01 28 01 a0 |........|.....(..|
|00000100| 00 00 00 00 01 e0 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 78 00 00 0c 13 | 00 70 00 c0 00 00 00 00 |...x....|.p......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000690| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006a0| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006b0| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000006c0| b0 b0 b0 b0 b0 b0 b0 0d | 44 41 54 41 20 42 20 20 |........|DATA B |
|000006d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006f0| 20 20 20 20 20 20 20 53 | 63 72 69 70 74 69 6e 67 | S|cripting|
|00000700| 20 66 6f 72 20 54 61 72 | 6f 74 57 6f 72 6b 73 0d | for Tar|otWorks.|
|00000710| 56 65 72 73 69 6f 6e 20 | 31 2e 31 2e 34 0d 0d 43 |Version |1.1.4..C|
|00000720| 6f 70 79 72 69 67 68 74 | 20 a9 20 53 69 6d 6f 6e |opyright| . Simon|
|00000730| 20 50 6f 69 73 73 6f 6e | 20 31 39 39 33 d0 31 39 | Poisson| 1993.19|
|00000740| 39 35 0d 41 6c 6c 20 52 | 69 67 68 74 73 20 52 65 |95.All R|ights Re|
|00000750| 73 65 72 76 65 64 20 57 | 6f 72 6c 64 77 69 64 65 |served W|orldwide|
|00000760| 2e 0d 0d 48 41 4e 44 4c | 45 52 53 3a 0d 51 75 65 |...HANDL|ERS:.Que|
|00000770| 72 69 65 73 3a 20 20 20 | 20 67 65 74 61 46 69 6c |ries: | getaFil|
|00000780| 65 2c 6f 70 65 6e 51 75 | 65 72 79 2c 63 68 65 63 |e,openQu|ery,chec|
|00000790| 6b 45 72 61 73 65 2c 63 | 6c 6f 73 65 44 6f 63 75 |kErase,c|loseDocu|
|000007a0| 6d 65 6e 74 2c 73 61 76 | 65 43 61 72 64 73 0d ca |ment,sav|eCards..|
|000007b0| 20 20 20 20 20 20 20 20 | 20 20 20 66 69 6e 69 73 | | finis|
|000007c0| 68 53 61 76 65 2c 6e 65 | 77 51 75 65 72 79 2c 65 |hSave,ne|wQuery,e|
|000007d0| 6e 74 65 72 51 75 65 72 | 79 0d 51 75 65 72 69 65 |nterQuer|y.Querie|
|000007e0| 73 28 29 3a 20 20 63 72 | 65 61 74 65 4e 65 77 57 |s(): cr|eateNewW|
|000007f0| 69 6e 64 6f 77 2c 63 61 | 72 64 43 6f 75 6e 74 2c |indow,ca|rdCount,|
|00000800| 63 61 72 64 73 43 6f 6d | 70 6c 65 74 65 2c 76 6f |cardsCom|plete,vo|
|00000810| 6c 75 6d 65 4e 61 6d 65 | 0d ca 20 20 20 20 20 20 |lumeName|.. |
|00000820| 20 20 20 20 20 63 68 65 | 63 6b 4c 65 6e 67 74 68 | che|ckLength|
|00000830| 2c 74 72 75 6e 63 54 65 | 78 74 2c 64 6f 63 4e 61 |,truncTe|xt,docNa|
|00000840| 6d 65 2c 62 6c 61 6e 6b | 44 6f 63 2c 74 79 70 65 |me,blank|Doc,type|
|00000850| 2c 63 6c 65 61 6e 51 75 | 65 72 79 0d 44 69 61 6c |,cleanQu|ery.Dial|
|00000860| 6f 67 73 3a 20 20 20 20 | 73 68 6f 77 41 62 6f 75 |ogs: |showAbou|
|00000870| 74 42 6f 78 2c 73 68 6f | 77 50 65 72 6d 69 73 73 |tBox,sho|wPermiss|
|00000880| 69 6f 6e 73 2c 61 62 6f | 75 74 44 65 63 6b 2c 61 |ions,abo|utDeck,a|
|00000890| 62 6f 75 74 43 6f 6d 6d | 2c 77 61 69 74 4b 6c 69 |boutComm|,waitKli|
|000008a0| 6b 28 29 0d ca 20 20 20 | 20 20 20 20 20 20 20 20 |k().. | |
|000008b0| 67 65 74 4c 61 79 6f 75 | 74 2c 75 6e 41 76 61 69 |getLayou|t,unAvai|
|000008c0| 6c 2c 73 68 6f 77 4c 61 | 72 67 65 43 61 72 64 2c |l,showLa|rgeCard,|
|000008d0| 73 68 6f 77 53 65 71 75 | 65 6e 63 65 0d b0 b0 b0 |showSequ|ence....|
|000008e0| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|000008f0| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000900| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000910| b0 b0 b0 b0 b0 b0 b0 b0 | b0 b0 b0 b0 b0 b0 b0 b0 |........|........|
|00000920| b0 b0 b0 b0 0d 0d 0d 2d | 2d 20 a5 20 51 55 45 52 |.......-|- . QUER|
|00000930| 49 45 53 0d 0d 6f 6e 20 | 67 65 74 61 46 69 6c 65 |IES..on |getaFile|
|00000940| 0d 67 6c 6f 62 61 6c 20 | 6c 6f 4e 61 6d 65 73 2c |.global |loNames,|
|00000950| 6c 6f 54 79 70 65 73 2c | 73 68 69 66 74 54 65 73 |loTypes,|shiftTes|
|00000960| 74 2c 6f 70 74 69 6f 6e | 54 65 73 74 2c 74 65 6d |t,option|Test,tem|
|00000970| 70 53 74 61 63 6b 73 2c | 6c 61 73 74 4c 61 79 6f |pStacks,|lastLayo|
|00000980| 75 74 0d 69 66 20 74 68 | 65 20 68 65 61 70 53 70 |ut.if th|e heapSp|
|00000990| 61 63 65 20 3c 20 31 30 | 30 30 30 30 20 74 68 65 |ace < 10|0000 the|
|000009a0| 6e 0d 73 68 6f 77 45 72 | 72 6f 72 20 36 0d 65 78 |n.showEr|ror 6.ex|
|000009b0| 69 74 20 74 6f 20 68 79 | 70 65 72 43 61 72 64 0d |it to hy|perCard.|
|000009c0| 65 6e 64 20 69 66 0d 69 | 66 20 6e 6f 74 28 73 68 |end if.i|f not(sh|
|000009d0| 69 66 74 54 65 73 74 29 | 20 74 68 65 6e 20 70 75 |iftTest)| then pu|
|000009e0| 74 20 28 74 68 65 20 73 | 68 69 66 74 4b 65 79 20 |t (the s|hiftKey |
|000009f0| 69 73 20 64 6f 77 6e 29 | 20 69 6e 74 6f 20 73 68 |is down)| into sh|
|00000a00| 69 66 74 54 65 73 74 0d | 69 66 20 6e 6f 74 28 6f |iftTest.|if not(o|
|00000a10| 70 74 69 6f 6e 54 65 73 | 74 29 20 74 68 65 6e 20 |ptionTes|t) then |
|00000a20| 70 75 74 20 28 74 68 65 | 20 6f 70 74 69 6f 6e 4b |put (the| optionK|
|00000a30| 65 79 20 69 73 20 64 6f | 77 6e 29 20 69 6e 74 6f |ey is do|wn) into|
|00000a40| 20 6f 70 74 69 6f 6e 54 | 65 73 74 0d 70 75 74 20 | optionT|est.put |
|00000a50| 6e 69 28 6c 6f 4e 61 6d | 65 73 29 20 69 6e 74 6f |ni(loNam|es) into|
|00000a60| 20 6c 6f 53 0d 69 66 20 | 6c 6f 53 20 3d 20 31 20 | loS.if |loS = 1 |
|00000a70| 6f 72 20 73 68 69 66 74 | 54 65 73 74 20 74 68 65 |or shift|Test the|
|00000a80| 6e 0d 69 66 20 6f 70 74 | 69 6f 6e 54 65 73 74 20 |n.if opt|ionTest |
|00000a90| 74 68 65 6e 0d 70 75 74 | 20 6c 61 73 74 4c 61 79 |then.put| lastLay|
|00000aa0| 6f 75 74 20 69 6e 74 6f | 20 74 65 6d 70 54 79 70 |out into| tempTyp|
|00000ab0| 65 0d 65 6c 73 65 20 70 | 75 74 20 67 65 74 4c 61 |e.else p|ut getLa|
|00000ac0| 79 6f 75 74 20 28 4f 70 | 65 6e 29 20 69 6e 74 6f |yout (Op|en) into|
|00000ad0| 20 74 65 6d 70 54 79 70 | 65 0d 65 6c 73 65 20 70 | tempTyp|e.else p|
|00000ae0| 75 74 20 22 41 6e 79 20 | 54 79 70 65 22 20 69 6e |ut "Any |Type" in|
|00000af0| 74 6f 20 74 65 6d 70 54 | 79 70 65 0d 69 66 20 74 |to tempT|ype.if t|
|00000b00| 65 6d 70 54 79 70 65 20 | ad 20 22 41 6e 79 20 54 |empType |. "Any T|
|00000b10| 79 70 65 22 20 74 68 65 | 6e 0d 70 75 74 20 74 79 |ype" the|n.put ty|
|00000b20| 70 65 28 74 65 6d 70 54 | 79 70 65 29 20 69 6e 74 |pe(tempT|ype) int|
|00000b30| 6f 20 74 68 65 54 79 70 | 65 0d 61 6e 73 77 65 72 |o theTyp|e.answer|
|00000b40| 20 66 69 6c 65 20 28 6d | 53 74 72 69 6e 67 28 35 | file (m|String(5|
|00000b50| 36 29 20 26 26 20 70 72 | 65 70 6f 73 69 74 69 6f |6) && pr|epositio|
|00000b60| 6e 28 74 65 6d 70 54 79 | 70 65 29 20 26 26 20 c2 |n(tempTy|pe) && .|
|00000b70| 0d 6d 53 74 72 69 6e 67 | 28 32 34 29 20 26 20 22 |.mString|(24) & "|
|00000b80| 3a 22 29 20 6f 66 20 74 | 79 70 65 20 74 68 65 54 |:") of t|ype theT|
|00000b90| 79 70 65 0d 65 6c 73 65 | 0d 69 66 20 6e 69 28 6c |ype.else|.if ni(l|
|00000ba0| 6f 4e 61 6d 65 73 29 20 | 3c 20 35 20 74 68 65 6e |oNames) |< 5 then|
|00000bb0| 0d 64 6f 20 28 22 61 6e | 73 77 65 72 20 66 69 6c |.do ("an|swer fil|
|00000bc0| 65 22 20 26 26 20 71 69 | 28 6d 53 74 72 69 6e 67 |e" && qi|(mString|
|00000bd0| 28 35 38 29 29 20 26 26 | 20 c2 0d 22 6f 66 20 74 |(58)) &&| .."of t|
|00000be0| 79 70 65 22 20 26 26 20 | 6c 6f 54 79 70 65 73 29 |ype" && |loTypes)|
|00000bf0| 0d 65 6c 73 65 20 61 6e | 73 77 65 72 20 66 69 6c |.else an|swer fil|
|00000c00| 65 20 6d 53 74 72 69 6e | 67 28 35 38 29 0d 65 6e |e mStrin|g(58).en|
|00000c10| 64 20 69 66 0d 70 75 74 | 20 69 74 20 69 6e 74 6f |d if.put| it into|
|00000c20| 20 66 69 6c 65 4e 61 6d | 65 0d 69 66 20 66 69 6c | fileNam|e.if fil|
|00000c30| 65 4e 61 6d 65 20 3d 20 | 22 22 20 6f 72 20 74 68 |eName = |"" or th|
|00000c40| 65 20 72 65 73 75 6c 74 | 20 69 73 20 22 43 61 6e |e result| is "Can|
|00000c50| 63 65 6c 22 20 74 68 65 | 6e 20 65 78 69 74 20 74 |cel" the|n exit t|
|00000c60| 6f 20 68 79 70 65 72 43 | 61 72 64 0d 6f 70 65 6e |o hyperC|ard.open|
|00000c70| 51 75 65 72 79 20 66 69 | 6c 65 4e 61 6d 65 0d 70 |Query fi|leName.p|
|00000c80| 75 74 20 22 22 20 69 6e | 74 6f 20 74 65 6d 70 53 |ut "" in|to tempS|
|00000c90| 74 61 63 6b 73 0d 73 68 | 6f 77 20 63 64 20 77 69 |tacks.sh|ow cd wi|
|00000ca0| 6e 64 6f 77 0d 75 6e 6c | 6f 63 6b 20 73 63 72 65 |ndow.unl|ock scre|
|00000cb0| 65 6e 0d 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 65 |en.lock |screen.e|
|00000cc0| 6e 64 20 67 65 74 61 46 | 69 6c 65 0d 0d 6f 6e 20 |nd getaF|ile..on |
|00000cd0| 6f 70 65 6e 51 75 65 72 | 79 20 66 69 6c 65 4e 61 |openQuer|y fileNa|
|00000ce0| 6d 65 0d 67 6c 6f 62 61 | 6c 20 74 68 65 53 74 61 |me.globa|l theSta|
|00000cf0| 63 6b 2c 63 61 72 64 73 | 53 61 76 65 64 2c 70 6f |ck,cards|Saved,po|
|00000d00| 73 69 74 69 6f 6e 73 2c | 74 68 65 52 65 61 64 69 |sitions,|theReadi|
|00000d10| 6e 67 73 2c 6c 69 6e 65 | 4e 6f 2c 63 61 72 64 73 |ngs,line|No,cards|
|00000d20| 53 61 76 65 64 2c 20 c2 | 0d 6d 61 63 53 68 75 66 |Saved, .|.macShuf|
|00000d30| 66 6c 65 2c 69 6c 6c 44 | 69 67 6e 69 74 69 65 73 |fle,illD|ignities|
|00000d40| 2c 75 73 65 72 51 75 65 | 72 79 2c 6f 70 65 6e 44 |,userQue|ry,openD|
|00000d50| 6f 63 73 2c 64 6f 63 54 | 79 70 65 73 2c 6c 6f 4e |ocs,docT|ypes,loN|
|00000d60| 61 6d 65 73 2c 69 64 6c | 65 46 6c 61 67 2c 20 c2 |ames,idl|eFlag, .|
|00000d70| 0d 66 69 6c 65 4e 61 6d | 65 73 2c 6c 6f 54 79 70 |.fileNam|es,loTyp|
|00000d80| 65 73 2c 74 65 6d 70 53 | 74 61 63 6b 73 2c 74 6f |es,tempS|tacks,to|
|00000d90| 6c 50 72 65 66 0d 70 75 | 74 20 6c 65 61 66 4e 61 |lPref.pu|t leafNa|
|00000da0| 6d 65 28 66 69 6c 65 4e | 61 6d 65 29 20 69 6e 74 |me(fileN|ame) int|
|00000db0| 6f 20 74 65 6d 70 46 69 | 6c 65 4e 61 6d 65 0d 73 |o tempFi|leName.s|
|00000dc0| 74 6f 70 44 69 73 61 62 | 6c 65 0d 70 75 74 20 69 |topDisab|le.put i|
|00000dd0| 74 65 6d 20 31 20 6f 66 | 20 28 67 65 74 46 49 6e |tem 1 of| (getFIn|
|00000de0| 66 6f 20 28 66 69 6c 65 | 4e 61 6d 65 29 29 20 69 |fo (file|Name)) i|
|00000df0| 6e 74 6f 20 66 69 6c 65 | 54 79 70 65 0d 70 75 74 |nto file|Type.put|
|00000e00| 20 69 74 65 6d 20 28 6e | 69 28 28 63 68 61 72 20 | item (n|i((char |
|00000e10| 31 20 74 6f 20 28 6f 66 | 66 73 65 74 28 66 69 6c |1 to (of|fset(fil|
|00000e20| 65 54 79 70 65 2c 6c 6f | 54 79 70 65 73 29 29 20 |eType,lo|Types)) |
|00000e30| c2 0d 6f 66 20 6c 6f 54 | 79 70 65 73 29 29 29 20 |..of loT|ypes))) |
|00000e40| 6f 66 20 6c 6f 4e 61 6d | 65 73 20 69 6e 74 6f 20 |of loNam|es into |
|00000e50| 74 65 6d 70 53 74 61 63 | 6b 0d 69 66 20 74 65 6d |tempStac|k.if tem|
|00000e60| 70 53 74 61 63 6b 20 69 | 73 20 6e 6f 74 20 69 6e |pStack i|s not in|
|00000e70| 20 6c 6f 4e 61 6d 65 73 | 20 74 68 65 6e 0d 70 75 | loNames| then.pu|
|00000e80| 74 20 72 65 73 54 65 78 | 74 20 28 22 54 45 58 54 |t resTex|t ("TEXT|
|00000e90| 22 2c 22 51 75 65 72 79 | 22 2c 66 69 6c 65 4e 61 |","Query|",fileNa|
|00000ea0| 6d 65 2c 46 41 4c 53 45 | 29 20 69 6e 74 6f 20 69 |me,FALSE|) into i|
|00000eb0| 0d 69 66 20 22 65 72 72 | 6f 72 22 20 69 73 20 69 |.if "err|or" is i|
|00000ec0| 6e 20 69 20 74 68 65 6e | 0d 70 75 74 20 37 20 69 |n i then|.put 7 i|
|00000ed0| 6e 74 6f 20 65 0d 65 6c | 73 65 20 70 75 74 20 35 |nto e.el|se put 5|
|00000ee0| 38 20 69 6e 74 6f 20 65 | 0d 69 66 20 74 68 65 20 |8 into e|.if the |
|00000ef0| 6c 61 73 74 20 63 68 61 | 72 20 6f 66 20 74 65 6d |last cha|r of tem|
|00000f00| 70 46 69 6c 65 4e 61 6d | 65 20 3d 20 72 65 74 75 |pFileNam|e = retu|
|00000f10| 72 6e 0d 74 68 65 6e 20 | 64 65 6c 65 74 65 20 74 |rn.then |delete t|
|00000f20| 68 65 20 6c 61 73 74 20 | 63 68 61 72 20 6f 66 20 |he last |char of |
|00000f30| 74 65 6d 70 46 69 6c 65 | 4e 61 6d 65 0d 73 68 6f |tempFile|Name.sho|
|00000f40| 77 45 72 72 6f 72 20 65 | 2c 6d 6c 28 74 65 6d 70 |wError e|,ml(temp|
|00000f50| 46 69 6c 65 4e 61 6d 65 | 29 0d 65 78 69 74 20 6f |FileName|).exit o|
|00000f60| 70 65 6e 51 75 65 72 79 | 0d 65 6e 64 20 69 66 0d |penQuery|.end if.|
|00000f70| 70 72 6f 67 72 65 7a 20 | 22 4f 70 65 6e 22 2c 28 |progrez |"Open",(|
|00000f80| 6d 53 74 72 69 6e 67 28 | 35 39 29 20 26 26 20 74 |mString(|59) && t|
|00000f90| 65 6d 70 53 74 61 63 6b | 20 26 26 20 6d 53 74 72 |empStack| && mStr|
|00000fa0| 69 6e 67 28 36 30 29 20 | 26 20 22 c9 22 29 0d 73 |ing(60) |& ".").s|
|00000fb0| 65 74 42 61 72 20 2e 30 | 35 0d 69 66 20 74 65 6d |etBar .0|5.if tem|
|00000fc0| 70 53 74 61 63 6b 20 69 | 73 20 6e 6f 74 20 69 6e |pStack i|s not in|
|00000fd0| 20 6c 6f 4e 61 6d 65 73 | 20 74 68 65 6e 0d 73 68 | loNames| then.sh|
|00000fe0| 6f 77 45 72 72 6f 72 20 | 38 2c 6d 6c 28 62 6c 61 |owError |8,ml(bla|
|00000ff0| 6e 6b 44 6f 63 28 74 65 | 6d 70 46 69 6c 65 4e 61 |nkDoc(te|mpFileNa|
|00001000| 6d 65 2c 74 65 6d 70 53 | 74 61 63 6b 29 2c 74 65 |me,tempS|tack),te|
|00001010| 6d 70 53 74 61 63 6b 29 | 0d 65 78 69 74 20 74 6f |mpStack)|.exit to|
|00001020| 20 68 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | hyperCa|rd.end i|
|00001030| 66 0d 70 75 74 20 72 65 | 73 54 65 78 74 20 28 22 |f.put re|sText ("|
|00001040| 54 45 58 54 22 2c 22 51 | 75 65 72 79 22 2c 66 69 |TEXT","Q|uery",fi|
|00001050| 6c 65 4e 61 6d 65 2c 46 | 41 4c 53 45 29 20 69 6e |leName,F|ALSE) in|
|00001060| 74 6f 20 69 0d 69 66 20 | 22 65 72 72 6f 72 22 20 |to i.if |"error" |
|00001070| 69 73 20 69 6e 20 69 20 | 74 68 65 6e 0d 73 68 6f |is in i |then.sho|
|00001080| 77 45 72 72 6f 72 20 39 | 2c 6d 6c 28 62 6c 61 6e |wError 9|,ml(blan|
|00001090| 6b 44 6f 63 28 74 65 6d | 70 46 69 6c 65 4e 61 6d |kDoc(tem|pFileNam|
|000010a0| 65 2c 74 65 6d 70 53 74 | 61 63 6b 29 29 0d 65 78 |e,tempSt|ack)).ex|
|000010b0| 69 74 20 74 6f 20 68 79 | 70 65 72 43 61 72 64 0d |it to hy|perCard.|
|000010c0| 65 6e 64 20 69 66 0d 2d | 2d 20 c6 20 65 6e 63 6f |end if.-|- . enco|
|000010d0| 64 65 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 2c 20 |de immed|iately, |
|000010e0| 6f 66 20 6e 6f 74 20 61 | 6c 72 65 61 64 79 0d 69 |of not a|lready.i|
|000010f0| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|00001100| 63 68 61 72 73 20 6f 66 | 20 6c 69 6e 65 20 31 20 |chars of| line 1 |
|00001110| 6f 66 20 69 20 3e 20 31 | 30 20 74 68 65 6e 0d 70 |of i > 1|0 then.p|
|00001120| 75 74 20 6c 65 6e 67 74 | 68 28 66 69 6c 65 4e 61 |ut lengt|h(fileNa|
|00001130| 6d 65 29 20 69 6e 74 6f | 20 6b 79 0d 69 66 20 6b |me) into| ky.if k|
|00001140| 79 20 3e 20 32 30 30 20 | 74 68 65 6e 20 70 75 74 |y > 200 |then put|
|00001150| 20 32 30 30 20 69 6e 74 | 6f 20 6b 79 0d 70 75 74 | 200 int|o ky.put|
|00001160| 20 65 6e 63 6f 64 65 54 | 65 78 74 28 6b 79 2c 31 | encodeT|ext(ky,1|
|00001170| 30 29 20 26 20 72 65 74 | 75 72 6e 20 26 20 65 6e |0) & ret|urn & en|
|00001180| 63 6f 64 65 54 65 78 74 | 28 69 2c 6b 79 29 20 69 |codeText|(i,ky) i|
|00001190| 6e 74 6f 20 69 0d 54 65 | 78 74 52 65 73 20 69 2c |nto i.Te|xtRes i,|
|000011a0| 22 54 45 58 54 22 2c 22 | 51 75 65 72 79 22 2c 66 |"TEXT","|Query",f|
|000011b0| 69 6c 65 4e 61 6d 65 2c | 54 52 55 45 0d 70 75 74 |ileName,|TRUE.put|
|000011c0| 20 72 65 73 54 65 78 74 | 20 28 22 54 45 58 54 22 | resText| ("TEXT"|
|000011d0| 2c 22 4e 6f 74 65 22 2c | 66 69 6c 65 4e 61 6d 65 |,"Note",|fileName|
|000011e0| 2c 46 41 4c 53 45 29 20 | 69 6e 74 6f 20 78 0d 69 |,FALSE) |into x.i|
|000011f0| 66 20 78 20 ad 20 22 22 | 20 61 6e 64 20 22 45 72 |f x . ""| and "Er|
|00001200| 72 6f 72 22 20 69 73 20 | 6e 6f 74 20 69 6e 20 78 |ror" is |not in x|
|00001210| 20 74 68 65 6e 0d 70 75 | 74 20 65 6e 63 6f 64 65 | then.pu|t encode|
|00001220| 54 65 78 74 28 78 2c 6b | 79 29 20 69 6e 74 6f 20 |Text(x,k|y) into |
|00001230| 78 0d 54 65 78 74 52 65 | 73 20 78 2c 22 54 45 58 |x.TextRe|s x,"TEX|
|00001240| 54 22 2c 22 4e 6f 74 65 | 22 2c 66 69 6c 65 4e 61 |T","Note|",fileNa|
|00001250| 6d 65 2c 54 52 55 45 0d | 65 6e 64 20 69 66 0d 65 |me,TRUE.|end if.e|
|00001260| 6e 64 20 69 66 0d 70 75 | 74 20 64 65 63 6f 64 65 |nd if.pu|t decode|
|00001270| 54 65 78 74 28 6c 69 6e | 65 20 31 20 6f 66 20 69 |Text(lin|e 1 of i|
|00001280| 2c 31 30 29 20 69 6e 74 | 6f 20 6b 79 0d 64 65 6c |,10) int|o ky.del|
|00001290| 65 74 65 20 6c 69 6e 65 | 20 31 20 6f 66 20 69 0d |ete line| 1 of i.|
|000012a0| 70 75 74 20 61 64 64 52 | 65 74 28 64 65 63 6f 64 |put addR|et(decod|
|000012b0| 65 54 65 78 74 28 69 2c | 6b 79 29 29 20 69 6e 74 |eText(i,|ky)) int|
|000012c0| 6f 20 73 61 76 65 53 74 | 72 69 6e 67 0d 69 66 20 |o saveSt|ring.if |
|000012d0| 28 66 69 6c 65 4e 61 6d | 65 20 26 20 72 65 74 75 |(fileNam|e & retu|
|000012e0| 72 6e 29 20 69 73 20 69 | 6e 20 66 69 6c 65 4e 61 |rn) is i|n fileNa|
|000012f0| 6d 65 73 20 74 68 65 6e | 0d 69 66 20 74 68 65 72 |mes then|.if ther|
|00001300| 65 20 69 73 20 61 20 6d | 65 6e 75 49 74 65 6d 20 |e is a m|enuItem |
|00001310| 28 74 65 6d 70 46 69 6c | 65 4e 61 6d 65 20 26 26 |(tempFil|eName &&|
|00001320| 20 22 28 22 20 26 20 74 | 65 6d 70 53 74 61 63 6b | "(" & t|empStack|
|00001330| 20 26 20 22 29 22 29 20 | 6f 66 20 6d 65 6e 75 20 | & ")") |of menu |
|00001340| 22 57 69 6e 64 6f 77 22 | 0d 74 68 65 6e 20 64 6f |"Window"|.then do|
|00001350| 4d 65 6e 75 20 28 74 65 | 6d 70 46 69 6c 65 4e 61 |Menu (te|mpFileNa|
|00001360| 6d 65 20 26 26 20 22 28 | 22 20 26 20 74 65 6d 70 |me && "(|" & temp|
|00001370| 53 74 61 63 6b 20 26 20 | 22 29 22 29 0d 73 68 6f |Stack & |")").sho|
|00001380| 77 45 72 72 6f 72 20 31 | 30 2c 6d 6c 28 62 6c 61 |wError 1|0,ml(bla|
|00001390| 6e 6b 44 6f 63 28 74 65 | 6d 70 46 69 6c 65 4e 61 |nkDoc(te|mpFileNa|
|000013a0| 6d 65 2c 74 65 6d 70 53 | 74 61 63 6b 29 29 0d 65 |me,tempS|tack)).e|
|000013b0| 78 69 74 20 74 6f 20 68 | 79 70 65 72 43 61 72 64 |xit to h|yperCard|
|000013c0| 0d 65 6e 64 20 69 66 0d | 77 61 69 74 43 75 72 73 |.end if.|waitCurs|
|000013d0| 6f 72 0d 73 65 74 42 61 | 72 20 30 2e 31 0d 6c 6f |or.setBa|r 0.1.lo|
|000013e0| 63 6b 20 73 63 72 65 65 | 6e 0d 70 75 74 20 63 72 |ck scree|n.put cr|
|000013f0| 65 61 74 65 4e 65 77 57 | 69 6e 64 6f 77 28 4f 70 |eateNewW|indow(Op|
|00001400| 65 6e 2c 74 65 6d 70 53 | 74 61 63 6b 2c 74 65 6d |en,tempS|tack,tem|
|00001410| 70 46 69 6c 65 4e 61 6d | 65 2c 22 22 29 20 69 6e |pFileNam|e,"") in|
|00001420| 74 6f 20 6e 65 77 57 69 | 6e 64 6f 77 0d 69 66 20 |to newWi|ndow.if |
|00001430| 6e 65 77 57 69 6e 64 6f | 77 20 3d 20 22 22 20 74 |newWindo|w = "" t|
|00001440| 68 65 6e 20 65 78 69 74 | 20 74 6f 20 68 79 70 65 |hen exit| to hype|
|00001450| 72 43 61 72 64 0d 70 75 | 74 20 6e 65 77 57 69 6e |rCard.pu|t newWin|
|00001460| 64 6f 77 20 26 20 72 65 | 74 75 72 6e 20 61 66 74 |dow & re|turn aft|
|00001470| 65 72 20 6f 70 65 6e 44 | 6f 63 73 0d 70 75 74 20 |er openD|ocs.put |
|00001480| 74 65 6d 70 53 74 61 63 | 6b 20 26 20 72 65 74 75 |tempStac|k & retu|
|00001490| 72 6e 20 61 66 74 65 72 | 20 64 6f 63 54 79 70 65 |rn after| docType|
|000014a0| 73 0d 70 75 74 20 66 69 | 6c 65 4e 61 6d 65 20 26 |s.put fi|leName &|
|000014b0| 20 72 65 74 75 72 6e 20 | 61 66 74 65 72 20 66 69 | return |after fi|
|000014c0| 6c 65 4e 61 6d 65 73 0d | 69 6e 69 74 53 74 61 63 |leNames.|initStac|
|000014d0| 6b 0d 63 72 65 61 74 65 | 47 6c 6f 62 61 6c 73 20 |k.create|Globals |
|000014e0| 74 68 65 53 74 61 63 6b | 0d 77 61 69 74 43 75 72 |theStack|.waitCur|
|000014f0| 73 6f 72 0d 73 65 74 42 | 61 72 20 30 2e 31 35 0d |sor.setB|ar 0.15.|
|00001500| 73 74 6f 70 45 6e 61 62 | 6c 65 0d 63 6f 6c 6f 72 |stopEnab|le.color|
|00001510| 69 7a 65 48 43 20 22 44 | 69 73 70 6f 73 65 22 0d |izeHC "D|ispose".|
|00001520| 63 6f 6c 6f 72 69 7a 65 | 48 43 20 22 61 73 73 69 |colorize|HC "assi|
|00001530| 67 6e 54 6f 46 72 6f 6e | 74 22 0d 66 69 6c 6c 42 |gnToFron|t".fillB|
|00001540| 61 63 6b 67 72 6f 75 6e | 64 0d 70 75 74 20 6c 69 |ackgroun|d.put li|
|00001550| 6e 65 20 31 20 6f 66 20 | 73 61 76 65 53 74 72 69 |ne 1 of |saveStri|
|00001560| 6e 67 20 69 6e 74 6f 20 | 74 65 6d 70 52 65 61 64 |ng into |tempRead|
|00001570| 69 6e 67 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |ing.put |"" into |
|00001580| 6c 69 6e 65 20 6c 69 6e | 65 4e 6f 20 6f 66 20 74 |line lin|eNo of t|
|00001590| 68 65 52 65 61 64 69 6e | 67 73 0d 70 75 74 20 22 |heReadin|gs.put "|
|000015a0| 22 20 69 6e 74 6f 20 6c | 69 6e 65 20 6c 69 6e 65 |" into l|ine line|
|000015b0| 4e 6f 20 6f 66 20 69 6c | 6c 44 69 67 6e 69 74 69 |No of il|lDigniti|
|000015c0| 65 73 0d 73 65 74 42 61 | 72 20 30 2e 32 0d 72 65 |es.setBa|r 0.2.re|
|000015d0| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 31 20 |peat wit|h i = 1 |
|000015e0| 74 6f 20 70 6f 73 69 74 | 69 6f 6e 73 0d 70 75 74 |to posit|ions.put|
|000015f0| 20 77 6f 72 64 20 31 20 | 6f 66 20 69 74 65 6d 20 | word 1 |of item |
|00001600| 69 20 6f 66 20 74 65 6d | 70 52 65 61 64 69 6e 67 |i of tem|pReading|
|00001610| 20 26 26 20 c2 0d 77 6f | 72 64 20 32 20 6f 66 20 | && ..wo|rd 2 of |
|00001620| 69 74 65 6d 20 69 20 6f | 66 20 74 65 6d 70 52 65 |item i o|f tempRe|
|00001630| 61 64 69 6e 67 20 26 20 | 22 2c 22 20 61 66 74 65 |ading & |"," afte|
|00001640| 72 20 6c 69 6e 65 20 6c | 69 6e 65 4e 6f 20 6f 66 |r line l|ineNo of|
|00001650| 20 74 68 65 52 65 61 64 | 69 6e 67 73 0d 69 66 20 | theRead|ings.if |
|00001660| 77 6f 72 64 20 33 20 6f | 66 20 69 74 65 6d 20 69 |word 3 o|f item i|
|00001670| 20 6f 66 20 74 65 6d 70 | 52 65 61 64 69 6e 67 20 | of temp|Reading |
|00001680| 3d 20 22 66 22 20 74 68 | 65 6e 0d 70 75 74 20 22 |= "f" th|en.put "|
|00001690| 66 61 6c 73 65 22 20 26 | 20 22 2c 22 20 61 66 74 |false" &| "," aft|
|000016a0| 65 72 20 6c 69 6e 65 20 | 6c 69 6e 65 4e 6f 20 6f |er line |lineNo o|
|000016b0| 66 20 69 6c 6c 44 69 67 | 6e 69 74 69 65 73 0d 65 |f illDig|nities.e|
|000016c0| 6c 73 65 20 70 75 74 20 | 22 74 72 75 65 22 20 26 |lse put |"true" &|
|000016d0| 20 22 2c 22 20 61 66 74 | 65 72 20 6c 69 6e 65 20 | "," aft|er line |
|000016e0| 6c 69 6e 65 4e 6f 20 6f | 66 20 69 6c 6c 44 69 67 |lineNo o|f illDig|
|000016f0| 6e 69 74 69 65 73 0d 73 | 65 74 42 61 72 20 28 30 |nities.s|etBar (0|
|00001700| 2e 32 2b 69 2f 28 70 6f | 73 69 74 69 6f 6e 73 2a |.2+i/(po|sitions*|
|00001710| 34 29 29 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 64 |4)).end |repeat.d|
|00001720| 65 6c 65 74 65 20 74 68 | 65 20 6c 61 73 74 20 63 |elete th|e last c|
|00001730| 68 61 72 20 6f 66 20 6c | 69 6e 65 20 6c 69 6e 65 |har of l|ine line|
|00001740| 4e 6f 20 6f 66 20 74 68 | 65 52 65 61 64 69 6e 67 |No of th|eReading|
|00001750| 73 0d 64 65 6c 65 74 65 | 20 74 68 65 20 6c 61 73 |s.delete| the las|
|00001760| 74 20 63 68 61 72 20 6f | 66 20 6c 69 6e 65 20 6c |t char o|f line l|
|00001770| 69 6e 65 4e 6f 20 6f 66 | 20 69 6c 6c 44 69 67 6e |ineNo of| illDign|
|00001780| 69 74 69 65 73 0d 69 66 | 20 6e 6f 74 28 63 61 6c |ities.if| not(cal|
|00001790| 63 28 74 68 65 53 74 61 | 63 6b 29 29 20 74 68 65 |c(theSta|ck)) the|
|000017a0| 6e 0d 70 75 74 20 74 68 | 65 20 6c 61 73 74 20 69 |n.put th|e last i|
|000017b0| 74 65 6d 20 6f 66 20 73 | 61 76 65 53 74 72 69 6e |tem of s|aveStrin|
|000017c0| 67 20 69 6e 74 6f 20 71 | 0d 69 66 20 71 20 ad 20 |g into q|.if q . |
|000017d0| 69 74 65 6d 20 70 6f 73 | 69 74 69 6f 6e 73 20 6f |item pos|itions o|
|000017e0| 66 20 74 65 6d 70 52 65 | 61 64 69 6e 67 20 74 68 |f tempRe|ading th|
|000017f0| 65 6e 0d 70 75 74 20 71 | 20 69 6e 74 6f 20 6c 69 |en.put q| into li|
|00001800| 6e 65 20 6c 69 6e 65 4e | 6f 20 6f 66 20 75 73 65 |ne lineN|o of use|
|00001810| 72 51 75 65 72 79 0d 65 | 6e 64 20 69 66 0d 65 6c |rQuery.e|nd if.el|
|00001820| 73 65 20 6c 6f 61 64 45 | 78 74 72 61 49 6e 66 6f |se loadE|xtraInfo|
|00001830| 20 28 73 61 76 65 53 74 | 72 69 6e 67 29 0d 70 75 | (saveSt|ring).pu|
|00001840| 74 20 74 72 75 65 20 69 | 6e 74 6f 20 6c 69 6e 65 |t true i|nto line|
|00001850| 20 6c 69 6e 65 4e 6f 20 | 6f 66 20 6d 61 63 53 68 | lineNo |of macSh|
|00001860| 75 66 66 6c 65 0d 70 75 | 74 20 74 72 75 65 20 69 |uffle.pu|t true i|
|00001870| 6e 74 6f 20 6c 69 6e 65 | 20 6c 69 6e 65 4e 6f 20 |nto line| lineNo |
|00001880| 6f 66 20 63 61 72 64 73 | 53 61 76 65 64 0d 77 61 |of cards|Saved.wa|
|00001890| 69 74 43 75 72 73 6f 72 | 0d 69 66 20 6e 6f 74 28 |itCursor|.if not(|
|000018a0| 63 61 6c 63 28 74 68 65 | 53 74 61 63 6b 29 29 20 |calc(the|Stack)) |
|000018b0| 74 68 65 6e 0d 72 65 70 | 65 61 74 20 77 69 74 68 |then.rep|eat with|
|000018c0| 20 69 20 3d 20 31 20 74 | 6f 20 70 6f 73 69 74 69 | i = 1 t|o positi|
|000018d0| 6f 6e 73 0d 77 61 69 74 | 43 75 72 73 6f 72 0d 73 |ons.wait|Cursor.s|
|000018e0| 65 74 43 61 72 64 20 69 | 0d 73 65 74 42 61 72 20 |etCard i|.setBar |
|000018f0| 28 30 2e 34 35 2b 69 2f | 28 70 6f 73 69 74 69 6f |(0.45+i/|(positio|
|00001900| 6e 73 2a 32 29 29 0d 65 | 6e 64 20 72 65 70 65 61 |ns*2)).e|nd repea|
|00001910| 74 0d 69 66 20 74 6f 6c | 50 72 65 66 20 74 68 65 |t.if tol|Pref the|
|00001920| 6e 20 63 61 6c 63 75 6c | 61 74 65 54 72 65 65 0d |n calcul|ateTree.|
|00001930| 67 6f 20 74 6f 20 74 68 | 69 73 20 63 64 0d 65 6c |go to th|is cd.el|
|00001940| 73 65 20 75 70 64 61 74 | 65 57 69 6e 64 6f 77 20 |se updat|eWindow |
|00001950| 22 22 2c 2e 34 35 2c 2e | 39 35 0d 75 6e 6c 6f 63 |"",.45,.|95.unloc|
|00001960| 6b 20 73 63 72 65 65 6e | 0d 75 6e 6c 6f 63 6b 20 |k screen|.unlock |
|00001970| 73 63 72 65 65 6e 0d 75 | 6e 6c 6f 63 6b 20 6d 65 |screen.u|nlock me|
|00001980| 73 73 61 67 65 73 0d 62 | 6c 61 6e 6b 57 69 6e 73 |ssages.b|lankWins|
|00001990| 0d 77 61 69 74 43 75 72 | 73 6f 72 0d 70 75 74 20 |.waitCur|sor.put |
|000019a0| 30 20 69 6e 74 6f 20 69 | 64 6c 65 46 6c 61 67 0d |0 into i|dleFlag.|
|000019b0| 70 75 74 20 22 22 20 69 | 6e 74 6f 20 74 65 6d 70 |put "" i|nto temp|
|000019c0| 53 74 61 63 6b 73 0d 75 | 70 64 61 74 65 4d 65 6e |Stacks.u|pdateMen|
|000019d0| 75 73 0d 63 6c 6f 73 65 | 50 72 6f 67 0d 65 6e 64 |us.close|Prog.end|
|000019e0| 20 6f 70 65 6e 51 75 65 | 72 79 0d 0d 6f 6e 20 63 | openQue|ry..on c|
|000019f0| 68 65 63 6b 45 72 61 73 | 65 20 74 68 65 41 63 74 |heckEras|e theAct|
|00001a00| 69 6f 6e 0d 67 6c 6f 62 | 61 6c 20 63 61 72 64 73 |ion.glob|al cards|
|00001a10| 53 61 76 65 64 2c 6c 69 | 6e 65 4e 6f 2c 74 68 65 |Saved,li|neNo,the|
|00001a20| 53 74 61 63 6b 2c 69 64 | 6c 65 46 6c 61 67 0d 69 |Stack,id|leFlag.i|
|00001a30| 66 20 74 68 65 41 63 74 | 69 6f 6e 20 3d 20 22 22 |f theAct|ion = ""|
|00001a40| 20 74 68 65 6e 20 70 75 | 74 20 22 63 6f 6e 74 69 | then pu|t "conti|
|00001a50| 6e 75 69 6e 67 22 20 69 | 6e 74 6f 20 74 68 65 41 |nuing" i|nto theA|
|00001a60| 63 74 69 6f 6e 0d 69 66 | 20 6c 69 6e 65 4e 6f 20 |ction.if| lineNo |
|00001a70| 69 73 20 6e 6f 74 20 61 | 20 6e 75 6d 62 65 72 20 |is not a| number |
|00001a80| 74 68 65 6e 20 65 78 69 | 74 20 63 68 65 63 6b 45 |then exi|t checkE|
|00001a90| 72 61 73 65 0d 69 66 20 | 63 6f 6d 6d 4f 70 65 6e |rase.if |commOpen|
|00001aa0| 28 29 20 74 68 65 6e 0d | 70 75 74 20 6f 70 65 6e |() then.|put open|
|00001ab0| 44 6f 63 28 29 20 69 6e | 74 6f 20 63 68 65 63 6b |Doc() in|to check|
|00001ac0| 4e 61 6d 65 0d 64 65 6c | 65 74 65 20 74 68 65 20 |Name.del|ete the |
|00001ad0| 6c 61 73 74 20 63 68 61 | 72 20 6f 66 20 63 68 65 |last cha|r of che|
|00001ae0| 63 6b 4e 61 6d 65 0d 70 | 75 74 20 22 3a 43 6f 6d |ckName.p|ut ":Com|
|00001af0| 6d 65 6e 74 22 20 61 66 | 74 65 72 20 63 68 65 63 |ment" af|ter chec|
|00001b00| 6b 4e 61 6d 65 0d 70 75 | 74 20 6e 6c 28 63 68 61 |kName.pu|t nl(cha|
|00001b10| 72 20 31 20 74 6f 20 6f | 66 66 73 65 74 28 63 68 |r 1 to o|ffset(ch|
|00001b20| 65 63 6b 4e 61 6d 65 2c | 74 68 65 20 77 69 6e 64 |eckName,|the wind|
|00001b30| 6f 77 73 29 20 6f 66 20 | 74 68 65 20 77 69 6e 64 |ows) of |the wind|
|00001b40| 6f 77 73 29 20 69 6e 74 | 6f 20 6c 0d 69 66 20 6c |ows) int|o l.if l|
|00001b50| 20 3e 20 30 20 74 68 65 | 6e 0d 69 66 20 74 68 65 | > 0 the|n.if the|
|00001b60| 41 63 74 69 6f 6e 20 ad | 20 22 63 6c 6f 73 69 6e |Action .| "closin|
|00001b70| 67 22 20 74 68 65 6e 0d | 73 68 6f 77 45 72 72 6f |g" then.|showErro|
|00001b80| 72 20 31 31 2c 6d 6c 28 | 74 68 65 53 74 61 63 6b |r 11,ml(|theStack|
|00001b90| 2c 64 6f 63 4e 61 6d 65 | 28 6f 70 65 6e 44 6f 63 |,docName|(openDoc|
|00001ba0| 28 29 29 2c 74 68 65 41 | 63 74 69 6f 6e 29 0d 65 |()),theA|ction).e|
|00001bb0| 6c 73 65 20 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |lse clos|e window|
|00001bc0| 20 28 6c 69 6e 65 20 6c | 20 6f 66 20 74 68 65 20 | (line l| of the |
|00001bd0| 77 69 6e 64 6f 77 73 29 | 0d 65 78 69 74 20 74 6f |windows)|.exit to|
|00001be0| 20 68 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | hyperCa|rd.end i|
|00001bf0| 66 0d 65 6e 64 20 69 66 | 0d 69 66 20 74 68 65 20 |f.end if|.if the |
|00001c00| 6f 70 74 69 6f 6e 4b 65 | 79 20 69 73 20 64 6f 77 |optionKe|y is dow|
|00001c10| 6e 20 74 68 65 6e 0d 69 | 66 20 74 68 65 72 65 20 |n then.i|f there |
|00001c20| 69 73 20 61 20 77 69 6e | 64 6f 77 20 73 75 6d 6d |is a win|dow summ|
|00001c30| 61 72 79 44 6f 63 28 29 | 0d 74 68 65 6e 20 63 6c |aryDoc()|.then cl|
|00001c40| 6f 73 65 20 77 69 6e 64 | 6f 77 20 73 75 6d 6d 61 |ose wind|ow summa|
|00001c50| 72 79 44 6f 63 28 29 0d | 63 6c 6f 73 65 44 6f 63 |ryDoc().|closeDoc|
|00001c60| 75 6d 65 6e 74 20 74 68 | 65 41 63 74 69 6f 6e 0d |ument th|eAction.|
|00001c70| 65 78 69 74 20 63 68 65 | 63 6b 45 72 61 73 65 0d |exit che|ckErase.|
|00001c80| 65 6e 64 20 69 66 0d 69 | 66 20 6c 69 6e 65 20 6c |end if.i|f line l|
|00001c90| 69 6e 65 4e 6f 20 6f 66 | 20 63 61 72 64 73 53 61 |ineNo of| cardsSa|
|00001ca0| 76 65 64 20 69 73 20 6e | 6f 74 20 74 72 75 65 20 |ved is n|ot true |
|00001cb0| 61 6e 64 20 c2 0d 63 61 | 72 64 43 6f 75 6e 74 28 |and ..ca|rdCount(|
|00001cc0| 6c 69 6e 65 4e 6f 29 20 | 3e 20 30 20 74 68 65 6e |lineNo) |> 0 then|
|00001cd0| 20 2d 2d 20 c6 20 75 6e | 73 61 76 65 64 20 63 64 | -- . un|saved cd|
|00001ce0| 73 0d 69 66 20 63 61 72 | 64 73 43 6f 6d 70 6c 65 |s.if car|dsComple|
|00001cf0| 74 65 28 6c 69 6e 65 4e | 6f 29 20 69 73 20 66 61 |te(lineN|o) is fa|
|00001d00| 6c 73 65 20 61 6e 64 20 | 63 61 6c 63 28 74 68 65 |lse and |calc(the|
|00001d10| 53 74 61 63 6b 29 20 69 | 73 20 6e 6f 74 20 74 72 |Stack) i|s not tr|
|00001d20| 75 65 20 74 68 65 6e 20 | 2d 2d 20 c6 20 73 6f 6d |ue then |-- . som|
|00001d30| 65 20 6d 69 73 73 69 6e | 67 0d 70 75 74 20 63 61 |e missin|g.put ca|
|00001d40| 72 64 43 6f 75 6e 74 28 | 6c 69 6e 65 4e 6f 29 20 |rdCount(|lineNo) |
|00001d50| 69 6e 74 6f 20 69 0d 70 | 75 74 20 22 43 6c 65 61 |into i.p|ut "Clea|
|00001d60| 72 20 74 68 65 22 20 26 | 26 20 74 65 78 74 4e 75 |r the" &|& textNu|
|00001d70| 6d 62 65 72 28 69 29 20 | 26 26 20 22 63 61 72 64 |mber(i) |&& "card|
|00001d80| 22 20 26 20 70 6c 75 72 | 61 6c 28 69 29 20 26 26 |" & plur|al(i) &&|
|00001d90| 20 22 69 6e 20 74 68 69 | 73 20 75 6e 66 69 6e 69 | "in thi|s unfini|
|00001da0| 73 68 65 64 22 20 26 26 | 20 c2 0d 74 68 65 53 74 |shed" &&| ..theSt|
|00001db0| 61 63 6b 20 26 26 20 22 | 64 6f 63 75 6d 65 6e 74 |ack && "|document|
|00001dc0| 20 62 65 66 6f 72 65 22 | 20 26 26 20 74 68 65 41 | before"| && theA|
|00001dd0| 63 74 69 6f 6e 20 26 20 | 22 3f 22 20 69 6e 74 6f |ction & |"?" into|
|00001de0| 20 74 68 65 51 0d 73 68 | 6f 77 44 69 61 6c 6f 67 | theQ.sh|owDialog|
|00001df0| 7a 20 31 2c 32 31 32 36 | 2c 74 68 65 51 2c 74 72 |z 1,2126|,theQ,tr|
|00001e00| 75 65 0d 70 75 74 20 74 | 68 65 20 72 65 73 75 6c |ue.put t|he resul|
|00001e10| 74 20 69 6e 74 6f 20 74 | 68 65 42 75 74 74 6f 6e |t into t|heButton|
|00001e20| 0d 69 66 20 74 68 65 42 | 75 74 74 6f 6e 20 3d 20 |.if theB|utton = |
|00001e30| 22 22 20 6f 72 20 74 68 | 65 42 75 74 74 6f 6e 20 |"" or th|eButton |
|00001e40| 69 73 20 32 20 74 68 65 | 6e 0d 65 78 69 74 20 74 |is 2 the|n.exit t|
|00001e50| 6f 20 68 79 70 65 72 43 | 61 72 64 0d 65 6e 64 20 |o hyperC|ard.end |
|00001e60| 69 66 0d 65 6c 73 65 0d | 69 66 20 66 69 6c 65 4e |if.else.|if fileN|
|00001e70| 61 6d 65 28 29 20 3d 20 | 22 22 20 74 68 65 6e 0d |ame() = |"" then.|
|00001e80| 70 75 74 20 22 64 6f 63 | 75 6d 65 6e 74 20 d2 55 |put "doc|ument .U|
|00001e90| 6e 74 69 74 6c 65 64 d3 | 22 20 69 6e 74 6f 20 64 |ntitled.|" into d|
|00001ea0| 0d 70 75 74 20 22 22 20 | 69 6e 74 6f 20 69 0d 65 |.put "" |into i.e|
|00001eb0| 6c 73 65 0d 70 75 74 20 | 22 64 6f 63 75 6d 65 6e |lse.put |"documen|
|00001ec0| 74 22 20 26 26 20 22 d2 | 22 20 26 20 6c 65 61 66 |t" && ".|" & leaf|
|00001ed0| 4e 61 6d 65 28 66 69 6c | 65 4e 61 6d 65 28 29 29 |Name(fil|eName())|
|00001ee0| 20 26 20 22 d3 22 20 69 | 6e 74 6f 20 64 0d 70 75 | & "." i|nto d.pu|
|00001ef0| 74 20 22 20 63 68 61 6e | 67 65 73 20 74 6f 22 20 |t " chan|ges to" |
|00001f00| 69 6e 74 6f 20 69 0d 65 | 6e 64 20 69 66 0d 70 75 |into i.e|nd if.pu|
|00001f10| 74 20 22 53 61 76 65 22 | 20 26 20 69 20 26 26 20 |t "Save"| & i && |
|00001f20| 22 74 68 65 22 20 26 26 | 20 74 68 65 53 74 61 63 |"the" &&| theStac|
|00001f30| 6b 20 26 26 20 64 20 26 | 26 20 22 62 65 66 6f 72 |k && d &|& "befor|
|00001f40| 65 22 20 26 26 20 74 68 | 65 41 63 74 69 6f 6e 20 |e" && th|eAction |
|00001f50| 26 20 22 3f 22 20 69 6e | 74 6f 20 74 68 65 51 0d |& "?" in|to theQ.|
|00001f60| 73 68 6f 77 44 69 61 6c | 6f 67 7a 20 31 2c 32 31 |showDial|ogz 1,21|
|00001f70| 33 39 2c 74 68 65 51 2c | 74 72 75 65 0d 70 75 74 |39,theQ,|true.put|
|00001f80| 20 74 68 65 20 72 65 73 | 75 6c 74 20 69 6e 74 6f | the res|ult into|
|00001f90| 20 74 68 65 42 75 74 74 | 6f 6e 0d 69 66 20 74 68 | theButt|on.if th|
|00001fa0| 65 42 75 74 74 6f 6e 20 | 3d 20 22 22 20 6f 72 20 |eButton |= "" or |
|00001fb0| 74 68 65 42 75 74 74 6f | 6e 20 69 73 20 32 20 74 |theButto|n is 2 t|
|00001fc0| 68 65 6e 20 65 78 69 74 | 20 74 6f 20 68 79 70 65 |hen exit| to hype|
|00001fd0| 72 43 61 72 64 0d 69 66 | 20 74 68 65 42 75 74 74 |rCard.if| theButt|
|00001fe0| 6f 6e 20 69 73 20 31 20 | 74 68 65 6e 0d 73 61 76 |on is 1 |then.sav|
|00001ff0| 65 43 61 72 64 73 0d 70 | 75 74 20 22 7a 22 20 69 |eCards.p|ut "z" i|
|00002000| 6e 74 6f 20 69 64 6c 65 | 46 6c 61 67 0d 65 6e 64 |nto idle|Flag.end|
|00002010| 20 69 66 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 69 | if.end |if.end i|
|00002020| 66 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |f.if the|re is a |
|00002030| 77 69 6e 64 6f 77 20 73 | 75 6d 6d 61 72 79 44 6f |window s|ummaryDo|
|00002040| 63 28 29 0d 74 68 65 6e | 20 63 6c 6f 73 65 20 77 |c().then| close w|
|00002050| 69 6e 64 6f 77 20 73 75 | 6d 6d 61 72 79 44 6f 63 |indow su|mmaryDoc|
|00002060| 28 29 0d 63 6c 6f 73 65 | 44 6f 63 75 6d 65 6e 74 |().close|Document|
|00002070| 20 74 68 65 41 63 74 69 | 6f 6e 0d 65 6e 64 20 63 | theActi|on.end c|
|00002080| 68 65 63 6b 45 72 61 73 | 65 0d 0d 6f 6e 20 63 6c |heckEras|e..on cl|
|00002090| 6f 73 65 44 6f 63 75 6d | 65 6e 74 20 74 68 65 41 |oseDocum|ent theA|
|000020a0| 63 74 69 6f 6e 0d 67 6c | 6f 62 61 6c 20 74 68 65 |ction.gl|obal the|
|000020b0| 53 74 61 63 6b 2c 6c 69 | 6e 65 4e 6f 2c 6f 70 65 |Stack,li|neNo,ope|
|000020c0| 6e 44 6f 63 73 2c 64 6f | 63 54 79 70 65 73 2c 74 |nDocs,do|cTypes,t|
|000020d0| 65 6d 70 46 6f 6c 64 65 | 72 2c 70 69 63 74 75 72 |empFolde|r,pictur|
|000020e0| 65 4e 61 6d 65 2c 20 c2 | 0d 71 75 69 74 46 6c 61 |eName, .|.quitFla|
|000020f0| 67 2c 63 6f 6d 6d 65 6e | 74 61 72 79 2c 6c 61 73 |g,commen|tary,las|
|00002100| 74 53 74 61 63 6b 0d 77 | 61 69 74 43 75 72 73 6f |tStack.w|aitCurso|
|00002110| 72 0d 70 75 74 20 74 68 | 65 20 73 68 6f 72 74 20 |r.put th|e short |
|00002120| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 73 74 61 |name of |this sta|
|00002130| 63 6b 20 69 6e 74 6f 20 | 73 74 61 63 6b 54 6f 44 |ck into |stackToD|
|00002140| 65 6c 65 74 65 0d 69 66 | 20 74 68 65 41 63 74 69 |elete.if| theActi|
|00002150| 6f 6e 20 ad 20 22 73 68 | 75 66 66 6c 69 6e 67 22 |on . "sh|uffling"|
|00002160| 20 74 68 65 6e 0d 6c 6f | 63 6b 20 6d 65 73 73 61 | then.lo|ck messa|
|00002170| 67 65 73 0d 62 6c 61 6e | 6b 57 69 6e 73 0d 69 66 |ges.blan|kWins.if|
|00002180| 20 74 68 65 72 65 20 69 | 73 20 61 20 77 69 6e 64 | there i|s a wind|
|00002190| 6f 77 20 28 73 74 61 63 | 6b 54 6f 44 65 6c 65 74 |ow (stac|kToDelet|
|000021a0| 65 29 20 74 68 65 6e 0d | 67 6f 20 73 74 61 63 6b |e) then.|go stack|
|000021b0| 20 73 74 61 63 6b 54 6f | 44 65 6c 65 74 65 20 69 | stackTo|Delete i|
|000021c0| 6e 20 61 20 6e 65 77 20 | 77 69 6e 64 6f 77 0d 69 |n a new |window.i|
|000021d0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|000021e0| 64 6f 77 20 70 69 63 74 | 75 72 65 4e 61 6d 65 20 |dow pict|ureName |
|000021f0| 74 68 65 6e 20 63 6c 6f | 73 65 20 77 69 6e 64 6f |then clo|se windo|
|00002200| 77 20 70 69 63 74 75 72 | 65 4e 61 6d 65 0d 70 75 |w pictur|eName.pu|
|00002210| 74 20 22 22 20 69 6e 74 | 6f 20 70 69 63 74 75 72 |t "" int|o pictur|
|00002220| 65 4e 61 6d 65 0d 64 6f | 4d 65 6e 75 20 22 63 6c |eName.do|Menu "cl|
|00002230| 6f 73 65 20 53 74 61 63 | 6b 22 0d 65 6e 64 20 69 |ose Stac|k".end i|
|00002240| 66 0d 69 66 20 6e 4c 28 | 64 6f 63 54 79 70 65 73 |f.if nL(|docTypes|
|00002250| 29 20 3d 20 31 20 74 68 | 65 6e 0d 6c 6f 63 6b 20 |) = 1 th|en.lock |
|00002260| 6d 65 73 73 61 67 65 73 | 0d 69 66 20 74 68 65 72 |messages|.if ther|
|00002270| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 74 68 |e is a w|indow th|
|00002280| 65 53 74 61 63 6b 20 74 | 68 65 6e 20 63 6c 6f 73 |eStack t|hen clos|
|00002290| 65 20 77 69 6e 64 6f 77 | 20 74 68 65 53 74 61 63 |e window| theStac|
|000022a0| 6b 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |k.if the|re is a |
|000022b0| 77 69 6e 64 6f 77 20 63 | 6f 6d 6d 65 6e 74 61 72 |window c|ommentar|
|000022c0| 79 20 74 68 65 6e 20 63 | 6c 6f 73 65 20 77 69 6e |y then c|lose win|
|000022d0| 64 6f 77 20 63 6f 6d 6d | 65 6e 74 61 72 79 0d 75 |dow comm|entary.u|
|000022e0| 6e 6c 6f 63 6b 20 6d 65 | 73 73 61 67 65 73 0d 65 |nlock me|ssages.e|
|000022f0| 6e 64 20 69 66 0d 65 72 | 61 73 65 46 69 6c 65 20 |nd if.er|aseFile |
|00002300| 28 74 65 6d 70 46 6f 6c | 64 65 72 20 26 20 73 74 |(tempFol|der & st|
|00002310| 61 63 6b 54 6f 44 65 6c | 65 74 65 29 0d 69 66 20 |ackToDel|ete).if |
|00002320| 6e 6f 74 28 71 75 69 74 | 46 6c 61 67 29 20 74 68 |not(quit|Flag) th|
|00002330| 65 6e 20 63 6c 65 61 72 | 52 65 73 63 75 65 20 64 |en clear|Rescue d|
|00002340| 6f 63 4e 61 6d 65 28 29 | 0d 69 66 20 74 68 65 20 |ocName()|.if the |
|00002350| 72 65 73 75 6c 74 20 ad | 20 22 22 20 74 68 65 6e |result .| "" then|
|00002360| 20 73 68 6f 77 51 75 69 | 74 20 33 34 0d 70 75 74 | showQui|t 34.put|
|00002370| 20 6c 69 6e 65 20 6c 69 | 6e 65 4e 6f 20 6f 66 20 | line li|neNo of |
|00002380| 64 6f 63 54 79 70 65 73 | 20 69 6e 74 6f 20 74 68 |docTypes| into th|
|00002390| 65 54 79 70 65 0d 64 65 | 6c 65 74 65 47 6c 6f 62 |eType.de|leteGlob|
|000023a0| 61 6c 73 20 73 74 61 63 | 6b 54 6f 44 65 6c 65 74 |als stac|kToDelet|
|000023b0| 65 0d 75 6e 6c 6f 63 6b | 20 6d 65 73 73 61 67 65 |e.unlock| message|
|000023c0| 73 0d 65 6e 64 20 69 66 | 0d 69 66 20 6c 61 79 6f |s.end if|.if layo|
|000023d0| 75 74 4f 70 65 6e 28 29 | 20 74 68 65 6e 0d 72 65 |utOpen()| then.re|
|000023e0| 70 65 61 74 20 66 6f 72 | 65 76 65 72 0d 69 66 20 |peat for|ever.if |
|000023f0| 74 68 65 20 73 68 6f 72 | 74 20 6e 61 6d 65 20 6f |the shor|t name o|
|00002400| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 69 73 20 |f this s|tack is |
|00002410| 6e 6f 74 20 69 6e 20 6f | 70 65 6e 44 6f 63 73 20 |not in o|penDocs |
|00002420| 74 68 65 6e 0d 6c 6f 63 | 6b 20 6d 65 73 73 61 67 |then.loc|k messag|
|00002430| 65 73 0d 64 6f 4d 65 6e | 75 20 22 6e 65 78 74 20 |es.doMen|u "next |
|00002440| 57 69 6e 64 6f 77 22 0d | 75 6e 6c 6f 63 6b 20 6d |Window".|unlock m|
|00002450| 65 73 73 61 67 65 73 0d | 65 6c 73 65 20 65 78 69 |essages.|else exi|
|00002460| 74 20 72 65 70 65 61 74 | 0d 65 6e 64 20 72 65 70 |t repeat|.end rep|
|00002470| 65 61 74 0d 65 6e 64 20 | 69 66 0d 69 66 20 74 68 |eat.end |if.if th|
|00002480| 65 41 63 74 69 6f 6e 20 | 3d 20 22 73 68 75 66 66 |eAction |= "shuff|
|00002490| 6c 69 6e 67 22 20 74 68 | 65 6e 20 65 78 69 74 20 |ling" th|en exit |
|000024a0| 63 6c 6f 73 65 44 6f 63 | 75 6d 65 6e 74 0d 69 66 |closeDoc|ument.if|
|000024b0| 20 6e 6f 74 20 6c 61 79 | 6f 75 74 4f 70 65 6e 28 | not lay|outOpen(|
|000024c0| 29 20 74 68 65 6e 0d 70 | 75 74 20 22 22 20 69 6e |) then.p|ut "" in|
|000024d0| 74 6f 20 74 68 65 53 74 | 61 63 6b 0d 70 75 74 20 |to theSt|ack.put |
|000024e0| 22 22 20 69 6e 74 6f 20 | 6c 61 73 74 53 74 61 63 |"" into |lastStac|
|000024f0| 6b 0d 63 6f 6c 6f 72 69 | 7a 65 48 43 20 22 61 73 |k.colori|zeHC "as|
|00002500| 73 69 67 6e 54 6f 46 72 | 6f 6e 74 22 0d 65 6c 73 |signToFr|ont".els|
|00002510| 65 20 75 70 64 61 74 65 | 57 69 6e 64 6f 77 0d 75 |e update|Window.u|
|00002520| 70 64 61 74 65 4d 65 6e | 75 73 0d 65 6e 64 20 63 |pdateMen|us.end c|
|00002530| 6c 6f 73 65 44 6f 63 75 | 6d 65 6e 74 0d 0d 6f 6e |loseDocu|ment..on|
|00002540| 20 73 61 76 65 43 61 72 | 64 73 20 73 61 76 65 41 | saveCar|ds saveA|
|00002550| 73 0d 67 6c 6f 62 61 6c | 20 74 68 65 53 74 61 63 |s.global| theStac|
|00002560| 6b 2c 63 61 72 64 73 53 | 61 76 65 64 2c 74 68 65 |k,cardsS|aved,the|
|00002570| 52 65 61 64 69 6e 67 73 | 2c 69 6c 6c 44 69 67 6e |Readings|,illDign|
|00002580| 69 74 69 65 73 2c 6c 69 | 6e 65 4e 6f 2c 20 c2 0d |ities,li|neNo, ..|
|00002590| 75 73 65 72 51 75 65 72 | 79 2c 6f 70 65 6e 44 6f |userQuer|y,openDo|
|000025a0| 63 73 2c 64 6f 63 54 79 | 70 65 73 2c 69 64 6c 65 |cs,docTy|pes,idle|
|000025b0| 46 6c 61 67 2c 66 69 6c | 65 4e 61 6d 65 73 2c 74 |Flag,fil|eNames,t|
|000025c0| 65 6d 70 53 74 61 63 6b | 73 2c 20 c2 0d 63 6f 6d |empStack|s, ..com|
|000025d0| 6d 57 69 6e 4c 69 73 74 | 2c 63 4c 69 73 74 2c 74 |mWinList|,cList,t|
|000025e0| 68 65 4d 6f 64 65 73 2c | 64 65 6d 6f 46 6c 61 67 |heModes,|demoFlag|
|000025f0| 0d 70 75 74 20 28 73 61 | 76 65 41 73 20 3d 20 54 |.put (sa|veAs = T|
|00002600| 52 55 45 29 20 69 6e 74 | 6f 20 73 61 76 65 41 73 |RUE) int|o saveAs|
|00002610| 0d 69 66 20 63 6f 6d 6d | 4f 70 65 6e 28 29 20 74 |.if comm|Open() t|
|00002620| 68 65 6e 0d 70 75 74 20 | 6f 70 65 6e 44 6f 63 28 |hen.put |openDoc(|
|00002630| 29 20 69 6e 74 6f 20 63 | 68 65 63 6b 4e 61 6d 65 |) into c|heckName|
|00002640| 0d 64 65 6c 65 74 65 20 | 74 68 65 20 6c 61 73 74 |.delete |the last|
|00002650| 20 63 68 61 72 20 6f 66 | 20 63 68 65 63 6b 4e 61 | char of| checkNa|
|00002660| 6d 65 0d 69 66 20 63 68 | 65 63 6b 4e 61 6d 65 20 |me.if ch|eckName |
|00002670| 69 73 20 69 6e 20 63 6f | 6d 6d 57 69 6e 4c 69 73 |is in co|mmWinLis|
|00002680| 74 20 74 68 65 6e 0d 69 | 66 20 74 68 65 41 63 74 |t then.i|f theAct|
|00002690| 69 6f 6e 20 69 73 20 22 | 63 6c 6f 73 69 6e 67 22 |ion is "|closing"|
|000026a0| 20 74 68 65 6e 0d 70 75 | 74 20 22 61 6e 64 20 74 | then.pu|t "and t|
|000026b0| 72 79 20 61 67 61 69 6e | 22 20 69 6e 74 6f 20 69 |ry again|" into i|
|000026c0| 0d 65 6c 73 65 20 70 75 | 74 20 22 62 65 66 6f 72 |.else pu|t "befor|
|000026d0| 65 22 20 26 26 20 74 68 | 65 41 63 74 69 6f 6e 20 |e" && th|eAction |
|000026e0| 69 6e 74 6f 20 69 0d 73 | 68 6f 77 45 72 72 6f 72 |into i.s|howError|
|000026f0| 20 31 32 2c 6d 6c 28 74 | 68 65 53 74 61 63 6b 2c | 12,ml(t|heStack,|
|00002700| 64 6f 63 4e 61 6d 65 28 | 6f 70 65 6e 44 6f 63 28 |docName(|openDoc(|
|00002710| 29 29 29 0d 65 78 69 74 | 20 74 6f 20 68 79 70 65 |))).exit| to hype|
|00002720| 72 43 61 72 64 0d 65 6e | 64 20 69 66 0d 65 6e 64 |rCard.en|d if.end|
|00002730| 20 69 66 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 | if.put |"" into |
|00002740| 6f 6c 64 4c 69 6e 65 0d | 70 75 74 20 6c 69 6e 65 |oldLine.|put line|
|00002750| 20 6c 69 6e 65 4e 6f 20 | 6f 66 20 64 6f 63 54 79 | lineNo |of docTy|
|00002760| 70 65 73 20 69 6e 74 6f | 20 74 65 6d 70 54 79 70 |pes into| tempTyp|
|00002770| 65 0d 67 65 74 20 67 65 | 74 51 75 65 72 79 28 29 |e.get ge|tQuery()|
|00002780| 0d 69 66 20 69 74 20 ad | 20 22 22 20 61 6e 64 20 |.if it .| "" and |
|00002790| 22 55 6e 74 69 74 6c 65 | 64 22 20 69 73 20 69 6e |"Untitle|d" is in|
|000027a0| 20 6f 70 65 6e 44 6f 63 | 28 29 20 74 68 65 6e 0d | openDoc|() then.|
|000027b0| 69 66 20 6c 65 6e 67 74 | 68 28 69 74 29 20 3e 20 |if lengt|h(it) > |
|000027c0| 33 31 20 74 68 65 6e 0d | 70 75 74 20 28 63 68 61 |31 then.|put (cha|
|000027d0| 72 20 31 20 74 6f 20 33 | 30 20 6f 66 20 69 74 29 |r 1 to 3|0 of it)|
|000027e0| 20 26 20 22 c9 22 20 69 | 6e 74 6f 20 64 65 66 61 | & "." i|nto defa|
|000027f0| 75 6c 74 4e 61 6d 65 0d | 65 6c 73 65 20 70 75 74 |ultName.|else put|
|00002800| 20 69 74 20 69 6e 74 6f | 20 64 65 66 61 75 6c 74 | it into| default|
|00002810| 4e 61 6d 65 0d 65 6c 73 | 65 20 70 75 74 20 64 6f |Name.els|e put do|
|00002820| 63 4e 61 6d 65 28 6f 70 | 65 6e 44 6f 63 28 29 29 |cName(op|enDoc())|
|00002830| 20 69 6e 74 6f 20 64 65 | 66 61 75 6c 74 4e 61 6d | into de|faultNam|
|00002840| 65 0d 69 66 20 66 69 6c | 65 4e 61 6d 65 28 29 20 |e.if fil|eName() |
|00002850| 3d 20 22 22 20 6f 72 20 | 73 61 76 65 41 73 20 74 |= "" or |saveAs t|
|00002860| 68 65 6e 0d 72 65 70 65 | 61 74 0d 61 73 6b 20 66 |hen.repe|at.ask f|
|00002870| 69 6c 65 20 28 74 65 6d | 70 54 79 70 65 20 26 26 |ile (tem|pType &&|
|00002880| 20 22 64 6f 63 75 6d 65 | 6e 74 3a 22 29 20 77 69 | "docume|nt:") wi|
|00002890| 74 68 20 64 65 66 61 75 | 6c 74 4e 61 6d 65 0d 70 |th defau|ltName.p|
|000028a0| 75 74 20 69 74 20 69 6e | 74 6f 20 6e 65 77 46 69 |ut it in|to newFi|
|000028b0| 6c 65 4e 61 6d 65 0d 69 | 66 20 77 6f 72 64 20 31 |leName.i|f word 1|
|000028c0| 20 6f 66 20 6c 65 61 66 | 4e 61 6d 65 28 6e 65 77 | of leaf|Name(new|
|000028d0| 46 69 6c 65 4e 61 6d 65 | 29 20 3d 20 22 55 6e 74 |FileName|) = "Unt|
|000028e0| 69 74 6c 65 64 22 20 74 | 68 65 6e 0d 73 68 6f 77 |itled" t|hen.show|
|000028f0| 45 72 72 6f 72 20 31 33 | 0d 65 6c 73 65 20 65 78 |Error 13|.else ex|
|00002900| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 72 65 |it repea|t.end re|
|00002910| 70 65 61 74 0d 65 6c 73 | 65 20 70 75 74 20 66 69 |peat.els|e put fi|
|00002920| 6c 65 4e 61 6d 65 28 29 | 20 69 6e 74 6f 20 6e 65 |leName()| into ne|
|00002930| 77 46 69 6c 65 4e 61 6d | 65 0d 69 66 20 64 65 6d |wFileNam|e.if dem|
|00002940| 6f 46 6c 61 67 20 3d 20 | 54 52 55 45 20 74 68 65 |oFlag = |TRUE the|
|00002950| 6e 0d 73 68 6f 77 45 72 | 72 6f 72 20 34 39 2c 6d |n.showEr|ror 49,m|
|00002960| 4c 28 74 68 65 53 74 61 | 63 6b 2c 64 6f 63 4e 61 |L(theSta|ck,docNa|
|00002970| 6d 65 28 6f 70 65 6e 44 | 6f 63 28 29 29 29 0d 65 |me(openD|oc())).e|
|00002980| 78 69 74 20 73 61 76 65 | 43 61 72 64 73 0d 65 6e |xit save|Cards.en|
|00002990| 64 20 69 66 0d 77 61 69 | 74 43 75 72 73 6f 72 0d |d if.wai|tCursor.|
|000029a0| 69 66 20 6e 65 77 46 69 | 6c 65 4e 61 6d 65 20 3d |if newFi|leName =|
|000029b0| 20 22 22 20 6f 72 20 6e | 65 77 46 69 6c 65 4e 61 | "" or n|ewFileNa|
|000029c0| 6d 65 20 69 73 20 22 43 | 61 6e 63 65 6c 22 20 74 |me is "C|ancel" t|
|000029d0| 68 65 6e 20 65 78 69 74 | 20 74 6f 20 68 79 70 65 |hen exit| to hype|
|000029e0| 72 43 61 72 64 0d 69 66 | 20 74 68 65 72 65 20 69 |rCard.if| there i|
|000029f0| 73 20 61 20 77 69 6e 64 | 6f 77 20 73 75 6d 6d 61 |s a wind|ow summa|
|00002a00| 72 79 44 6f 63 28 29 20 | 74 68 65 6e 0d 70 75 74 |ryDoc() |then.put|
|00002a10| 20 66 6c 64 20 22 53 75 | 6d 6d 61 72 79 22 20 69 | fld "Su|mmary" i|
|00002a20| 6e 74 6f 20 73 0d 70 75 | 74 20 74 72 75 65 20 69 |nto s.pu|t true i|
|00002a30| 6e 74 6f 20 72 65 41 6e | 61 6c 79 7a 65 0d 61 6e |nto reAn|alyze.an|
|00002a40| 61 6c 79 7a 65 0d 65 6e | 64 20 69 66 0d 70 75 74 |alyze.en|d if.put|
|00002a50| 20 6c 65 61 66 4e 61 6d | 65 20 28 6e 65 77 46 69 | leafNam|e (newFi|
|00002a60| 6c 65 4e 61 6d 65 29 20 | 69 6e 74 6f 20 74 65 6d |leName) |into tem|
|00002a70| 70 46 69 6c 65 4e 61 6d | 65 0d 70 75 74 20 6c 65 |pFileNam|e.put le|
|00002a80| 6e 67 74 68 28 6e 65 77 | 46 69 6c 65 4e 61 6d 65 |ngth(new|FileName|
|00002a90| 29 20 69 6e 74 6f 20 6b | 79 0d 69 66 20 6b 79 20 |) into k|y.if ky |
|00002aa0| 3e 20 32 30 30 20 74 68 | 65 6e 20 70 75 74 20 32 |> 200 th|en put 2|
|00002ab0| 30 30 20 69 6e 74 6f 20 | 6b 79 0d 6f 70 65 6e 20 |00 into |ky.open |
|00002ac0| 66 69 6c 65 20 6e 65 77 | 46 69 6c 65 4e 61 6d 65 |file new|FileName|
|00002ad0| 0d 63 6c 6f 73 65 20 66 | 69 6c 65 20 6e 65 77 46 |.close f|ile newF|
|00002ae0| 69 6c 65 4e 61 6d 65 0d | 69 66 20 22 55 6e 74 69 |ileName.|if "Unti|
|00002af0| 74 6c 65 64 22 20 69 73 | 20 6e 6f 74 20 69 6e 20 |tled" is| not in |
|00002b00| 6f 70 65 6e 44 6f 63 28 | 29 20 74 68 65 6e 0d 70 |openDoc(|) then.p|
|00002b10| 75 74 20 66 69 6c 65 4e | 61 6d 65 28 29 20 69 6e |ut fileN|ame() in|
|00002b20| 74 6f 20 66 0d 67 65 74 | 20 6c 6f 61 64 43 6f 6d |to f.get| loadCom|
|00002b30| 6d 65 6e 74 73 20 28 66 | 29 0d 69 66 20 63 4c 69 |ments (f|).if cLi|
|00002b40| 73 74 20 ad 20 22 22 20 | 74 68 65 6e 0d 63 6f 70 |st . "" |then.cop|
|00002b50| 79 52 65 73 20 66 2c 6e | 65 77 46 69 6c 65 4e 61 |yRes f,n|ewFileNa|
|00002b60| 6d 65 2c 22 54 45 58 54 | 22 2c 22 43 6f 6d 6d 65 |me,"TEXT|","Comme|
|00002b70| 6e 74 73 22 2c 22 4b 22 | 0d 72 65 70 65 61 74 20 |nts","K"|.repeat |
|00002b80| 77 69 74 68 20 69 20 3d | 20 31 20 74 6f 20 6e 6c |with i =| 1 to nl|
|00002b90| 28 63 4c 69 73 74 29 0d | 63 6f 70 79 52 65 73 20 |(cList).|copyRes |
|00002ba0| 66 2c 6e 65 77 46 69 6c | 65 4e 61 6d 65 2c 22 43 |f,newFil|eName,"C|
|00002bb0| 4f 4d 4d 22 2c 28 69 74 | 65 6d 20 31 20 74 6f 20 |OMM",(it|em 1 to |
|00002bc0| 32 20 6f 66 20 6c 69 6e | 65 20 69 20 6f 66 20 63 |2 of lin|e i of c|
|00002bd0| 4c 69 73 74 29 2c 22 4b | 22 0d 65 6e 64 20 72 65 |List),"K|".end re|
|00002be0| 70 65 61 74 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |peat.end| if.end |
|00002bf0| 69 66 0d 77 61 69 74 43 | 75 72 73 6f 72 0d 70 75 |if.waitC|ursor.pu|
|00002c00| 74 20 22 73 65 74 46 49 | 6e 66 6f 20 6e 65 77 46 |t "setFI|nfo newF|
|00002c10| 69 6c 65 4e 61 6d 65 2c | 22 20 26 20 71 69 28 22 |ileName,|" & qi("|
|00002c20| 74 3d 22 26 74 79 70 65 | 28 74 65 6d 70 54 79 70 |t="&type|(tempTyp|
|00002c30| 65 29 29 20 26 20 c2 0d | 22 2c 22 20 26 20 71 75 |e)) & ..|"," & qu|
|00002c40| 6f 74 65 20 26 20 22 63 | 3d 54 61 72 4f 22 20 26 |ote & "c|=TarO" &|
|00002c50| 20 71 75 6f 74 65 20 69 | 6e 74 6f 20 74 68 65 43 | quote i|nto theC|
|00002c60| 6d 64 0d 64 6f 20 74 68 | 65 43 6d 64 0d 69 66 20 |md.do th|eCmd.if |
|00002c70| 74 68 65 20 72 65 73 75 | 6c 74 20 ad 20 22 22 20 |the resu|lt . "" |
|00002c80| 74 68 65 6e 0d 73 68 6f | 77 45 72 72 6f 72 20 31 |then.sho|wError 1|
|00002c90| 34 2c 6d 6c 28 62 6c 61 | 6e 6b 44 6f 63 28 74 65 |4,ml(bla|nkDoc(te|
|00002ca0| 6d 70 46 69 6c 65 4e 61 | 6d 65 2c 74 68 65 53 74 |mpFileNa|me,theSt|
|00002cb0| 61 63 6b 29 29 0d 65 78 | 69 74 20 74 6f 20 68 79 |ack)).ex|it to hy|
|00002cc0| 70 65 72 43 61 72 64 0d | 65 6e 64 20 69 66 0d 70 |perCard.|end if.p|
|00002cd0| 75 74 20 22 22 20 69 6e | 74 6f 20 73 61 76 65 53 |ut "" in|to saveS|
|00002ce0| 74 72 69 6e 67 0d 77 61 | 69 74 43 75 72 73 6f 72 |tring.wa|itCursor|
|00002cf0| 0d 70 75 74 20 6c 69 6e | 65 20 6c 69 6e 65 4e 6f |.put lin|e lineNo|
|00002d00| 20 6f 66 20 74 68 65 52 | 65 61 64 69 6e 67 73 20 | of theR|eadings |
|00002d10| 69 6e 74 6f 20 74 65 6d | 70 53 74 72 69 6e 67 0d |into tem|pString.|
|00002d20| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|00002d30| 31 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |1 to the| number |
|00002d40| 6f 66 20 69 74 65 6d 73 | 20 69 6e 20 74 65 6d 70 |of items| in temp|
|00002d50| 53 74 72 69 6e 67 0d 70 | 75 74 20 69 74 65 6d 20 |String.p|ut item |
|00002d60| 69 20 6f 66 20 74 65 6d | 70 53 74 72 69 6e 67 20 |i of tem|pString |
|00002d70| 26 20 22 20 22 20 69 6e | 74 6f 20 74 68 65 43 61 |& " " in|to theCa|
|00002d80| 72 64 0d 70 75 74 20 63 | 68 61 72 20 31 20 6f 66 |rd.put c|har 1 of|
|00002d90| 20 69 74 65 6d 20 69 20 | 6f 66 20 6c 69 6e 65 20 | item i |of line |
|00002da0| 6c 69 6e 65 4e 6f 20 6f | 66 20 69 6c 6c 44 69 67 |lineNo o|f illDig|
|00002db0| 6e 69 74 69 65 73 20 61 | 66 74 65 72 20 74 68 65 |nities a|fter the|
|00002dc0| 43 61 72 64 0d 70 75 74 | 20 74 68 65 43 61 72 64 |Card.put| theCard|
|00002dd0| 20 26 20 22 2c 22 20 61 | 66 74 65 72 20 73 61 76 | & "," a|fter sav|
|00002de0| 65 53 74 72 69 6e 67 0d | 65 6e 64 20 72 65 70 65 |eString.|end repe|
|00002df0| 61 74 0d 64 65 6c 65 74 | 65 20 63 68 61 72 20 28 |at.delet|e char (|
|00002e00| 74 68 65 20 6c 65 6e 67 | 74 68 20 6f 66 20 73 61 |the leng|th of sa|
|00002e10| 76 65 53 74 72 69 6e 67 | 29 20 6f 66 20 73 61 76 |veString|) of sav|
|00002e20| 65 53 74 72 69 6e 67 0d | 69 66 20 63 61 6c 63 28 |eString.|if calc(|
|00002e30| 74 68 65 53 74 61 63 6b | 29 20 74 68 65 6e 20 70 |theStack|) then p|
|00002e40| 75 74 20 61 64 64 53 61 | 76 65 49 6e 66 6f 28 73 |ut addSa|veInfo(s|
|00002e50| 61 76 65 53 74 72 69 6e | 67 29 20 69 6e 74 6f 20 |aveStrin|g) into |
|00002e60| 73 61 76 65 53 74 72 69 | 6e 67 0d 65 6c 73 65 20 |saveStri|ng.else |
|00002e70| 70 75 74 20 22 2c 22 20 | 26 20 6c 69 6e 65 20 6c |put "," |& line l|
|00002e80| 69 6e 65 4e 6f 20 6f 66 | 20 75 73 65 72 51 75 65 |ineNo of| userQue|
|00002e90| 72 79 20 61 66 74 65 72 | 20 73 61 76 65 53 74 72 |ry after| saveStr|
|00002ea0| 69 6e 67 0d 77 61 69 74 | 43 75 72 73 6f 72 0d 70 |ing.wait|Cursor.p|
|00002eb0| 75 74 20 65 6e 63 6f 64 | 65 54 65 78 74 28 6b 79 |ut encod|eText(ky|
|00002ec0| 2c 31 30 29 20 26 20 72 | 65 74 75 72 6e 20 26 20 |,10) & r|eturn & |
|00002ed0| 65 6e 63 6f 64 65 54 65 | 78 74 28 73 61 76 65 53 |encodeTe|xt(saveS|
|00002ee0| 74 72 69 6e 67 2c 6b 79 | 29 20 c2 0d 69 6e 74 6f |tring,ky|) ..into|
|00002ef0| 20 73 61 76 65 53 74 72 | 69 6e 67 0d 54 65 78 74 | saveStr|ing.Text|
|00002f00| 52 65 73 20 73 61 76 65 | 53 74 72 69 6e 67 2c 20 |Res save|String, |
|00002f10| 22 54 45 58 54 22 2c 22 | 51 75 65 72 79 22 2c 6e |"TEXT","|Query",n|
|00002f20| 65 77 46 69 6c 65 4e 61 | 6d 65 2c 22 74 72 75 65 |ewFileNa|me,"true|
|00002f30| 22 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 70 75 |".lock s|creen.pu|
|00002f40| 74 20 63 72 65 61 74 65 | 4e 65 77 57 69 6e 64 6f |t create|NewWindo|
|00002f50| 77 20 28 22 53 61 76 65 | 22 2c 74 68 65 53 74 61 |w ("Save|",theSta|
|00002f60| 63 6b 2c 74 65 6d 70 46 | 69 6c 65 4e 61 6d 65 2c |ck,tempF|ileName,|
|00002f70| 73 61 76 65 41 73 29 20 | 69 6e 74 6f 20 6e 0d 69 |saveAs) |into n.i|
|00002f80| 66 20 6e 20 3d 20 22 22 | 20 74 68 65 6e 20 65 78 |f n = ""| then ex|
|00002f90| 69 74 20 74 6f 20 68 79 | 70 65 72 43 61 72 64 0d |it to hy|perCard.|
|00002fa0| 67 65 74 20 6f 70 65 6e | 44 6f 63 28 29 0d 69 66 |get open|Doc().if|
|00002fb0| 20 22 55 6e 74 69 74 6c | 65 64 22 20 69 73 20 69 | "Untitl|ed" is i|
|00002fc0| 6e 20 69 74 20 74 68 65 | 6e 20 63 6c 65 61 72 52 |n it the|n clearR|
|00002fd0| 65 73 63 75 65 20 69 74 | 0d 70 75 74 20 6e 20 69 |escue it|.put n i|
|00002fe0| 6e 74 6f 20 6c 69 6e 65 | 20 6c 69 6e 65 4e 6f 20 |nto line| lineNo |
|00002ff0| 6f 66 20 6f 70 65 6e 44 | 6f 63 73 0d 70 75 74 20 |of openD|ocs.put |
|00003000| 74 72 75 65 20 69 6e 74 | 6f 20 6c 69 6e 65 20 6c |true int|o line l|
|00003010| 69 6e 65 4e 6f 20 6f 66 | 20 63 61 72 64 73 53 61 |ineNo of| cardsSa|
|00003020| 76 65 64 0d 70 75 74 20 | 22 52 65 61 64 22 20 69 |ved.put |"Read" i|
|00003030| 6e 74 6f 20 6c 69 6e 65 | 20 6c 69 6e 65 4e 6f 20 |nto line| lineNo |
|00003040| 6f 66 20 74 68 65 4d 6f | 64 65 73 0d 70 75 74 20 |of theMo|des.put |
|00003050| 6e 65 77 46 69 6c 65 4e | 61 6d 65 20 69 6e 74 6f |newFileN|ame into|
|00003060| 20 6c 69 6e 65 20 6c 69 | 6e 65 4e 6f 20 6f 66 20 | line li|neNo of |
|00003070| 66 69 6c 65 4e 61 6d 65 | 73 0d 69 66 20 72 65 41 |fileName|s.if reA|
|00003080| 6e 61 6c 79 7a 65 20 69 | 73 20 74 72 75 65 20 74 |nalyze i|s true t|
|00003090| 68 65 6e 0d 77 61 69 74 | 43 75 72 73 6f 72 0d 70 |hen.wait|Cursor.p|
|000030a0| 75 74 20 73 20 69 6e 74 | 6f 20 66 6c 64 20 22 53 |ut s int|o fld "S|
|000030b0| 75 6d 6d 61 72 79 22 0d | 61 6e 61 6c 79 7a 65 0d |ummary".|analyze.|
|000030c0| 65 6e 64 20 69 66 0d 70 | 75 74 20 30 20 69 6e 74 |end if.p|ut 0 int|
|000030d0| 6f 20 69 64 6c 65 46 6c | 61 67 0d 75 70 64 61 74 |o idleFl|ag.updat|
|000030e0| 65 4d 65 6e 75 73 0d 70 | 75 74 20 22 22 20 69 6e |eMenus.p|ut "" in|
|000030f0| 74 6f 20 74 65 6d 70 53 | 74 61 63 6b 73 0d 73 65 |to tempS|tacks.se|
|00003100| 6e 64 20 66 69 6e 69 73 | 68 53 61 76 65 20 74 6f |nd finis|hSave to|
|00003110| 20 74 68 69 73 20 63 64 | 0d 65 6e 64 20 73 61 76 | this cd|.end sav|
|00003120| 65 43 61 72 64 73 0d 0d | 6f 6e 20 66 69 6e 69 73 |eCards..|on finis|
|00003130| 68 53 61 76 65 0d 65 6e | 64 20 66 69 6e 69 73 68 |hSave.en|d finish|
|00003140| 53 61 76 65 0d 0d 6f 6e | 20 6e 65 77 51 75 65 72 |Save..on| newQuer|
|00003150| 79 0d 67 6c 6f 62 61 6c | 20 74 68 65 53 74 61 63 |y.global| theStac|
|00003160| 6b 2c 6c 69 6e 65 4e 6f | 2c 70 6f 73 69 74 69 6f |k,lineNo|,positio|
|00003170| 6e 73 2c 61 75 74 6f 53 | 68 75 66 66 6c 65 50 72 |ns,autoS|hufflePr|
|00003180| 65 66 2c 6d 61 63 53 68 | 75 66 66 6c 65 2c 66 6f |ef,macSh|uffle,fo|
|00003190| 63 75 73 50 72 65 66 2c | c2 0d 69 64 6c 65 46 6c |cusPref,|..idleFl|
|000031a0| 61 67 2c 6f 70 65 6e 44 | 6f 63 73 2c 64 6f 63 54 |ag,openD|ocs,docT|
|000031b0| 79 70 65 73 2c 74 65 6d | 70 51 75 65 72 79 2c 75 |ypes,tem|pQuery,u|
|000031c0| 73 65 72 51 75 65 72 79 | 2c 74 65 6d 70 53 74 61 |serQuery|,tempSta|
|000031d0| 63 6b 73 2c 6f 70 74 69 | 6f 6e 54 65 73 74 2c c2 |cks,opti|onTest,.|
|000031e0| 0d 74 68 65 4d 6f 64 65 | 73 2c 73 68 6f 77 49 6e |.theMode|s,showIn|
|000031f0| 74 72 6f 2c 64 65 6d 6f | 46 6c 61 67 2c 6c 61 73 |tro,demo|Flag,las|
|00003200| 74 4c 61 79 6f 75 74 2c | 6c 6f 4e 61 6d 65 73 2c |tLayout,|loNames,|
|00003210| 73 6b 69 70 41 6c 6c 2c | 64 65 6d 6f 50 6c 75 67 |skipAll,|demoPlug|
|00003220| 0d 69 66 20 73 68 6f 77 | 49 6e 74 72 6f 20 3d 20 |.if show|Intro = |
|00003230| 54 52 55 45 20 6f 72 20 | 6c 61 73 74 4c 61 79 6f |TRUE or |lastLayo|
|00003240| 75 74 20 3d 20 22 22 20 | 74 68 65 6e 0d 69 66 20 |ut = "" |then.if |
|00003250| 64 65 6d 6f 46 6c 61 67 | 20 ad 20 54 52 55 45 20 |demoFlag| . TRUE |
|00003260| 74 68 65 6e 0d 67 65 74 | 20 6e 69 28 6c 6f 4e 61 |then.get| ni(loNa|
|00003270| 6d 65 73 29 0d 69 66 20 | 69 74 20 3e 20 31 20 74 |mes).if |it > 1 t|
|00003280| 68 65 6e 0d 67 65 74 20 | 28 74 65 78 74 4e 75 6d |hen.get |(textNum|
|00003290| 62 65 72 28 69 74 29 20 | 26 26 20 64 53 74 72 69 |ber(it) |&& dStri|
|000032a0| 6e 67 28 33 29 29 0d 65 | 6c 73 65 20 67 65 74 20 |ng(3)).e|lse get |
|000032b0| 28 69 74 65 6d 20 31 20 | 6f 66 20 6c 6f 4e 61 6d |(item 1 |of loNam|
|000032c0| 65 73 20 26 26 20 64 53 | 74 72 69 6e 67 28 34 29 |es && dS|tring(4)|
|000032d0| 29 0d 65 6c 73 65 20 67 | 65 74 20 28 64 65 6d 6f |).else g|et (demo|
|000032e0| 50 6c 75 67 20 26 26 20 | 64 53 74 72 69 6e 67 28 |Plug && |dString(|
|000032f0| 34 29 29 0d 61 6e 73 77 | 65 72 7a 20 32 2c 6d 4c |4)).answ|erz 2,mL|
|00003300| 28 69 74 29 0d 69 66 20 | 74 68 65 20 72 65 73 75 |(it).if |the resu|
|00003310| 6c 74 20 74 68 65 6e 0d | 69 66 20 64 65 6d 6f 46 |lt then.|if demoF|
|00003320| 6c 61 67 20 3d 20 54 52 | 55 45 20 74 68 65 6e 20 |lag = TR|UE then |
|00003330| 6c 61 79 6f 75 74 49 6e | 66 6f 20 64 65 6d 6f 50 |layoutIn|fo demoP|
|00003340| 6c 75 67 20 65 6c 73 65 | 20 6c 61 79 6f 75 74 49 |lug else| layoutI|
|00003350| 6e 66 6f 41 6c 6c 0d 69 | 66 20 73 68 6f 77 49 6e |nfoAll.i|f showIn|
|00003360| 74 72 6f 20 3d 20 54 52 | 55 45 20 61 6e 64 20 64 |tro = TR|UE and d|
|00003370| 65 6d 6f 46 6c 61 67 20 | 3d 20 54 52 55 45 20 74 |emoFlag |= TRUE t|
|00003380| 68 65 6e 20 73 68 6f 77 | 4d 65 73 73 61 67 65 20 |hen show|Message |
|00003390| 31 31 0d 69 66 20 64 65 | 6d 6f 46 6c 61 67 20 3d |11.if de|moFlag =|
|000033a0| 20 54 52 55 45 20 74 68 | 65 6e 20 70 75 74 20 64 | TRUE th|en put d|
|000033b0| 65 6d 6f 50 6c 75 67 20 | 69 6e 74 6f 20 6c 61 73 |emoPlug |into las|
|000033c0| 74 4c 61 79 6f 75 74 0d | 65 6e 64 20 69 66 0d 65 |tLayout.|end if.e|
|000033d0| 6e 64 20 69 66 0d 70 75 | 74 20 67 65 74 4c 61 79 |nd if.pu|t getLay|
|000033e0| 6f 75 74 20 28 4e 65 77 | 29 20 69 6e 74 6f 20 74 |out (New|) into t|
|000033f0| 65 6d 70 53 74 61 63 6b | 0d 69 66 20 64 65 6d 6f |empStack|.if demo|
|00003400| 46 6c 61 67 20 3d 20 54 | 52 55 45 20 74 68 65 6e |Flag = T|RUE then|
|00003410| 0d 69 66 20 74 65 6d 70 | 53 74 61 63 6b 20 ad 20 |.if temp|Stack . |
|00003420| 64 65 6d 6f 50 6c 75 67 | 20 74 68 65 6e 0d 73 68 |demoPlug| then.sh|
|00003430| 6f 77 45 72 72 6f 72 20 | 36 33 2c 6d 4c 28 74 65 |owError |63,mL(te|
|00003440| 6d 70 53 74 61 63 6b 2c | 64 65 6d 6f 50 6c 75 67 |mpStack,|demoPlug|
|00003450| 29 0d 65 78 69 74 20 6e | 65 77 51 75 65 72 79 0d |).exit n|ewQuery.|
|00003460| 65 6e 64 20 69 66 0d 65 | 6e 64 20 69 66 0d 69 66 |end if.e|nd if.if|
|00003470| 20 6e 6f 74 28 6f 70 74 | 69 6f 6e 54 65 73 74 29 | not(opt|ionTest)|
|00003480| 20 74 68 65 6e 20 70 75 | 74 20 28 74 68 65 20 6f | then pu|t (the o|
|00003490| 70 74 69 6f 6e 4b 65 79 | 20 69 73 20 64 6f 77 6e |ptionKey| is down|
|000034a0| 29 20 69 6e 74 6f 20 6f | 70 74 69 6f 6e 54 65 73 |) into o|ptionTes|
|000034b0| 74 0d 70 75 74 20 22 22 | 20 69 6e 74 6f 20 74 65 |t.put ""| into te|
|000034c0| 6d 70 51 75 65 72 79 0d | 69 66 20 6e 6f 74 28 63 |mpQuery.|if not(c|
|000034d0| 61 6c 63 28 74 65 6d 70 | 53 74 61 63 6b 29 29 20 |alc(temp|Stack)) |
|000034e0| 74 68 65 6e 20 70 75 74 | 20 65 6e 74 65 72 51 75 |then put| enterQu|
|000034f0| 65 72 79 28 74 65 6d 70 | 53 74 61 63 6b 2c 54 52 |ery(temp|Stack,TR|
|00003500| 55 45 29 20 69 6e 74 6f | 20 74 65 6d 70 51 75 65 |UE) into| tempQue|
|00003510| 72 79 0d 69 66 20 66 6f | 63 75 73 50 72 65 66 20 |ry.if fo|cusPref |
|00003520| 3d 20 54 52 55 45 20 61 | 6e 64 20 6e 6f 74 28 63 |= TRUE a|nd not(c|
|00003530| 61 6c 63 28 74 65 6d 70 | 53 74 61 63 6b 29 29 20 |alc(temp|Stack)) |
|00003540| 61 6e 64 20 6e 6f 74 28 | 6f 70 74 69 6f 6e 54 65 |and not(|optionTe|
|00003550| 73 74 29 20 74 68 65 6e | 0d 70 6c 61 79 20 22 46 |st) then|.play "F|
|00003560| 6f 63 75 73 22 0d 73 68 | 6f 77 44 69 61 6c 6f 67 |ocus".sh|owDialog|
|00003570| 7a 20 31 2c 38 31 35 32 | 2c 22 22 2c 74 72 75 65 |z 1,8152|,"",true|
|00003580| 0d 67 65 74 20 74 68 65 | 20 72 65 73 75 6c 74 0d |.get the| result.|
|00003590| 69 66 20 69 74 20 3d 20 | 32 20 74 68 65 6e 20 65 |if it = |2 then e|
|000035a0| 78 69 74 20 74 6f 20 68 | 79 70 65 72 43 61 72 64 |xit to h|yperCard|
|000035b0| 0d 65 6e 64 20 69 66 0d | 6c 6f 63 6b 20 73 63 72 |.end if.|lock scr|
|000035c0| 65 65 6e 0d 70 75 74 20 | 63 72 65 61 74 65 4e 65 |een.put |createNe|
|000035d0| 77 57 69 6e 64 6f 77 20 | 28 4e 65 77 2c 74 65 6d |wWindow |(New,tem|
|000035e0| 70 53 74 61 63 6b 2c 55 | 6e 74 69 74 6c 65 64 29 |pStack,U|ntitled)|
|000035f0| 20 69 6e 74 6f 20 77 68 | 69 63 68 4e 61 6d 65 0d | into wh|ichName.|
|00003600| 69 66 20 77 68 69 63 68 | 4e 61 6d 65 20 3d 20 22 |if which|Name = "|
|00003610| 22 20 74 68 65 6e 20 65 | 78 69 74 20 74 6f 20 68 |" then e|xit to h|
|00003620| 79 70 65 72 43 61 72 64 | 0d 70 75 74 20 77 68 69 |yperCard|.put whi|
|00003630| 63 68 4e 61 6d 65 20 26 | 20 72 65 74 75 72 6e 20 |chName &| return |
|00003640| 61 66 74 65 72 20 6f 70 | 65 6e 44 6f 63 73 0d 70 |after op|enDocs.p|
|00003650| 75 74 20 74 65 6d 70 53 | 74 61 63 6b 20 26 20 72 |ut tempS|tack & r|
|00003660| 65 74 75 72 6e 20 61 66 | 74 65 72 20 64 6f 63 54 |eturn af|ter docT|
|00003670| 79 70 65 73 0d 69 6e 69 | 74 53 74 61 63 6b 0d 63 |ypes.ini|tStack.c|
|00003680| 72 65 61 74 65 47 6c 6f | 62 61 6c 73 20 74 68 65 |reateGlo|bals the|
|00003690| 53 74 61 63 6b 0d 70 75 | 74 20 74 65 6d 70 51 75 |Stack.pu|t tempQu|
|000036a0| 65 72 79 20 69 6e 74 6f | 20 6c 69 6e 65 20 6c 69 |ery into| line li|
|000036b0| 6e 65 4e 6f 20 6f 66 20 | 75 73 65 72 51 75 65 72 |neNo of |userQuer|
|000036c0| 79 0d 70 75 74 20 22 22 | 20 69 6e 74 6f 20 74 65 |y.put ""| into te|
|000036d0| 6d 70 51 75 65 72 79 0d | 70 75 74 20 66 61 6c 73 |mpQuery.|put fals|
|000036e0| 65 20 69 6e 74 6f 20 73 | 6b 69 70 41 6c 6c 0d 69 |e into s|kipAll.i|
|000036f0| 66 20 63 61 6c 63 28 74 | 68 65 53 74 61 63 6b 29 |f calc(t|heStack)|
|00003700| 20 6f 72 20 61 75 74 6f | 53 68 75 66 66 6c 65 50 | or auto|ShuffleP|
|00003710| 72 65 66 20 3d 20 54 52 | 55 45 20 74 68 65 6e 0d |ref = TR|UE then.|
|00003720| 70 75 74 20 74 72 75 65 | 20 69 6e 74 6f 20 6c 69 |put true| into li|
|00003730| 6e 65 20 6c 69 6e 65 4e | 6f 20 6f 66 20 6d 61 63 |ne lineN|o of mac|
|00003740| 53 68 75 66 66 6c 65 0d | 69 64 6c 65 43 75 72 73 |Shuffle.|idleCurs|
|00003750| 6f 72 20 22 57 61 74 63 | 68 20 31 22 0d 70 75 74 |or "Watc|h 1".put|
|00003760| 20 30 20 69 6e 74 6f 20 | 69 64 6c 65 46 6c 61 67 | 0 into |idleFlag|
|00003770| 0d 65 6c 73 65 20 69 66 | 20 66 6f 63 75 73 50 72 |.else if| focusPr|
|00003780| 65 66 20 3d 20 54 52 55 | 45 20 74 68 65 6e 20 70 |ef = TRU|E then p|
|00003790| 75 74 20 30 20 69 6e 74 | 6f 20 69 64 6c 65 46 6c |ut 0 int|o idleFl|
|000037a0| 61 67 0d 69 66 20 61 75 | 74 6f 53 68 75 66 66 6c |ag.if au|toShuffl|
|000037b0| 65 50 72 65 66 20 ad 20 | 54 52 55 45 20 61 6e 64 |ePref . |TRUE and|
|000037c0| 20 63 61 6c 63 28 74 68 | 65 53 74 61 63 6b 29 20 | calc(th|eStack) |
|000037d0| 69 73 20 6e 6f 74 20 74 | 72 75 65 20 74 68 65 6e |is not t|rue then|
|000037e0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|000037f0| 20 28 70 6f 73 69 74 69 | 6f 6e 73 20 2a 20 32 20 | (positi|ons * 2 |
|00003800| 2b 20 31 29 20 74 6f 20 | 28 70 6f 73 69 74 69 6f |+ 1) to |(positio|
|00003810| 6e 73 20 2a 20 33 29 0d | 73 68 6f 77 20 62 67 20 |ns * 3).|show bg |
|00003820| 62 74 6e 20 69 0d 65 6e | 64 20 72 65 70 65 61 74 |btn i.en|d repeat|
|00003830| 0d 70 75 74 20 22 45 64 | 69 74 22 20 69 6e 74 6f |.put "Ed|it" into|
|00003840| 20 6c 69 6e 65 20 6c 69 | 6e 65 4e 6f 20 6f 66 20 | line li|neNo of |
|00003850| 74 68 65 4d 6f 64 65 73 | 0d 65 6e 64 20 69 66 0d |theModes|.end if.|
|00003860| 77 61 69 74 43 75 72 73 | 6f 72 0d 62 6c 61 6e 6b |waitCurs|or.blank|
|00003870| 57 69 6e 73 0d 75 70 64 | 61 74 65 57 69 6e 64 6f |Wins.upd|ateWindo|
|00003880| 77 0d 77 61 69 74 43 75 | 72 73 6f 72 0d 73 68 6f |w.waitCu|rsor.sho|
|00003890| 77 20 63 64 20 77 69 6e | 64 6f 77 0d 63 6f 6c 6f |w cd win|dow.colo|
|000038a0| 72 69 7a 65 48 43 20 22 | 61 73 73 69 67 6e 54 6f |rizeHC "|assignTo|
|000038b0| 46 72 6f 6e 74 22 0d 67 | 6f 20 74 6f 20 74 68 69 |Front".g|o to thi|
|000038c0| 73 20 63 61 72 64 0d 75 | 6e 6c 6f 63 6b 20 73 63 |s card.u|nlock sc|
|000038d0| 72 65 65 6e 0d 6c 6f 63 | 6b 20 73 63 72 65 65 6e |reen.loc|k screen|
|000038e0| 0d 75 70 64 61 74 65 4d | 65 6e 75 73 0d 69 66 20 |.updateM|enus.if |
|000038f0| 61 75 74 6f 53 68 75 66 | 66 6c 65 50 72 65 66 20 |autoShuf|flePref |
|00003900| 69 73 20 6e 6f 74 20 74 | 72 75 65 20 61 6e 64 20 |is not t|rue and |
|00003910| 63 61 6c 63 28 74 68 65 | 53 74 61 63 6b 29 20 69 |calc(the|Stack) i|
|00003920| 73 20 6e 6f 74 20 74 72 | 75 65 0d 74 68 65 6e 20 |s not tr|ue.then |
|00003930| 70 75 74 20 22 22 20 69 | 6e 74 6f 20 74 65 6d 70 |put "" i|nto temp|
|00003940| 53 74 61 63 6b 73 0d 65 | 6e 64 20 6e 65 77 51 75 |Stacks.e|nd newQu|
|00003950| 65 72 79 0d 0d 66 75 6e | 63 74 69 6f 6e 20 65 6e |ery..fun|ction en|
|00003960| 74 65 72 51 75 65 72 79 | 20 73 2c 6e 65 77 51 0d |terQuery| s,newQ.|
|00003970| 67 6c 6f 62 61 6c 20 74 | 68 65 53 74 61 63 6b 2c |global t|heStack,|
|00003980| 6c 69 6e 65 4e 6f 2c 75 | 73 65 72 51 75 65 72 79 |lineNo,u|serQuery|
|00003990| 0d 69 66 20 73 20 3d 20 | 22 22 20 74 68 65 6e 20 |.if s = |"" then |
|000039a0| 70 75 74 20 74 68 65 53 | 74 61 63 6b 20 69 6e 74 |put theS|tack int|
|000039b0| 6f 20 73 0d 70 75 74 20 | 6c 69 6e 65 20 6c 69 6e |o s.put |line lin|
|000039c0| 65 4e 6f 20 6f 66 20 75 | 73 65 72 51 75 65 72 79 |eNo of u|serQuery|
|000039d0| 20 69 6e 74 6f 20 71 0d | 70 75 74 20 71 20 69 6e | into q.|put q in|
|000039e0| 74 6f 20 6f 6c 64 51 75 | 65 72 79 0d 69 66 20 6e |to oldQu|ery.if n|
|000039f0| 65 77 51 20 ad 20 54 52 | 55 45 20 74 68 65 6e 0d |ewQ . TR|UE then.|
|00003a00| 69 66 20 71 20 3d 20 22 | 22 20 74 68 65 6e 0d 67 |if q = "|" then.g|
|00003a10| 65 74 20 32 0d 65 6c 73 | 65 20 67 65 74 20 33 0d |et 2.els|e get 3.|
|00003a20| 65 6c 73 65 20 67 65 74 | 20 31 0d 70 75 74 20 69 |else get| 1.put i|
|00003a30| 74 20 69 6e 74 6f 20 69 | 0d 72 65 70 65 61 74 0d |t into i|.repeat.|
|00003a40| 70 75 74 20 61 73 6b 52 | 65 73 70 6f 6e 73 65 20 |put askR|esponse |
|00003a50| 28 69 2c 6d 6c 28 73 29 | 2c 71 29 20 69 6e 74 6f |(i,ml(s)|,q) into|
|00003a60| 20 6f 51 0d 69 66 20 6f | 51 20 3d 20 22 43 61 6e | oQ.if o|Q = "Can|
|00003a70| 63 65 6c 22 20 74 68 65 | 6e 20 65 78 69 74 20 65 |cel" the|n exit e|
|00003a80| 6e 74 65 72 51 75 65 72 | 79 0d 69 66 20 6f 51 20 |nterQuer|y.if oQ |
|00003a90| ad 20 22 22 20 74 68 65 | 6e 0d 70 75 74 20 74 72 |. "" the|n.put tr|
|00003aa0| 75 6e 63 54 65 78 74 28 | 63 6c 65 61 6e 51 75 65 |uncText(|cleanQue|
|00003ab0| 72 79 28 6f 51 29 2c 35 | 30 29 20 69 6e 74 6f 20 |ry(oQ),5|0) into |
|00003ac0| 71 0d 69 66 20 22 2c 22 | 20 26 20 28 77 6f 72 64 |q.if ","| & (word|
|00003ad0| 20 31 20 6f 66 20 71 29 | 20 26 20 22 2c 22 20 69 | 1 of q)| & "," i|
|00003ae0| 73 20 69 6e 20 6d 53 74 | 72 69 6e 67 28 39 38 29 |s in mSt|ring(98)|
|00003af0| 20 74 68 65 6e 0d 61 6e | 73 77 65 72 7a 20 33 34 | then.an|swerz 34|
|00003b00| 0d 69 66 20 28 74 68 65 | 20 72 65 73 75 6c 74 29 |.if (the| result)|
|00003b10| 20 74 68 65 6e 20 6e 65 | 78 74 20 72 65 70 65 61 | then ne|xt repea|
|00003b20| 74 0d 65 6e 64 20 69 66 | 0d 69 66 20 71 20 3d 20 |t.end if|.if q = |
|00003b30| 6f 6c 64 51 75 65 72 79 | 20 6f 72 20 71 20 3d 20 |oldQuery| or q = |
|00003b40| 4f 71 20 6f 72 20 6e 65 | 77 51 20 3d 20 54 52 55 |Oq or ne|wQ = TRU|
|00003b50| 45 20 74 68 65 6e 20 65 | 78 69 74 20 72 65 70 65 |E then e|xit repe|
|00003b60| 61 74 0d 69 66 20 6f 6c | 64 51 75 65 72 79 20 3d |at.if ol|dQuery =|
|00003b70| 20 22 22 20 74 68 65 6e | 0d 67 65 74 20 38 0d 65 | "" then|.get 8.e|
|00003b80| 6c 73 65 20 67 65 74 20 | 33 31 0d 61 6e 73 77 65 |lse get |31.answe|
|00003b90| 72 7a 20 69 74 2c 6d 4c | 28 71 29 0d 69 66 20 28 |rz it,mL|(q).if (|
|00003ba0| 74 68 65 20 72 65 73 75 | 6c 74 29 20 74 68 65 6e |the resu|lt) then|
|00003bb0| 0d 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 |.exit re|peat.end|
|00003bc0| 20 69 66 0d 65 6c 73 65 | 20 65 78 69 74 20 72 65 | if.else| exit re|
|00003bd0| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|00003be0| 72 65 74 75 72 6e 20 71 | 0d 65 6e 64 20 65 6e 74 |return q|.end ent|
|00003bf0| 65 72 51 75 65 72 79 0d | 0d 0d 2d 2d 20 a5 ca 51 |erQuery.|..-- ..Q|
|00003c00| 55 45 52 59 20 46 55 4e | 43 54 49 4f 4e 53 0d 0d |UERY FUN|CTIONS..|
|00003c10| 66 75 6e 63 74 69 6f 6e | 20 63 72 65 61 74 65 4e |function| createN|
|00003c20| 65 77 57 69 6e 64 6f 77 | 20 77 68 69 63 68 41 63 |ewWindow| whichAc|
|00003c30| 74 69 6f 6e 2c 74 68 65 | 54 79 70 65 2c 77 68 69 |tion,the|Type,whi|
|00003c40| 63 68 4e 61 6d 65 2c 73 | 61 76 65 41 73 0d 67 6c |chName,s|aveAs.gl|
|00003c50| 6f 62 61 6c 20 74 65 6d | 70 46 6f 6c 64 65 72 2c |obal tem|pFolder,|
|00003c60| 70 6c 75 67 46 6f 6c 64 | 65 72 2c 6f 70 65 6e 44 |plugFold|er,openD|
|00003c70| 6f 63 73 2c 74 65 6d 70 | 53 74 61 63 6b 73 2c 74 |ocs,temp|Stacks,t|
|00003c80| 6f 6c 50 72 65 66 0d 69 | 66 20 69 73 50 72 6f 67 |olPref.i|f isProg|
|00003c90| 28 29 20 74 68 65 6e 0d | 73 74 6f 70 44 69 73 61 |() then.|stopDisa|
|00003ca0| 62 6c 65 0d 65 6c 73 65 | 20 73 65 74 20 74 68 65 |ble.else| set the|
|00003cb0| 20 63 61 6e 74 41 62 6f | 72 74 20 6f 66 20 74 68 | cantAbo|rt of th|
|00003cc0| 69 73 20 73 74 61 63 6b | 20 74 6f 20 54 52 55 45 |is stack| to TRUE|
|00003cd0| 0d 69 66 20 74 68 65 20 | 68 65 61 70 53 70 61 63 |.if the |heapSpac|
|00003ce0| 65 20 3c 20 31 30 30 30 | 30 30 20 74 68 65 6e 0d |e < 1000|00 then.|
|00003cf0| 73 68 6f 77 45 72 72 6f | 72 20 31 35 2c 6d 4c 28 |showErro|r 15,mL(|
|00003d00| 77 68 69 63 68 41 63 74 | 69 6f 6e 29 0d 72 65 74 |whichAct|ion).ret|
|00003d10| 75 72 6e 20 22 22 0d 65 | 6e 64 20 69 66 0d 77 61 |urn "".e|nd if.wa|
|00003d20| 69 74 43 75 72 73 6f 72 | 0d 69 66 20 77 68 69 63 |itCursor|.if whic|
|00003d30| 68 41 63 74 69 6f 6e 20 | 3d 20 22 4e 65 77 22 20 |hAction |= "New" |
|00003d40| 61 6e 64 20 77 68 69 63 | 68 4e 61 6d 65 20 69 73 |and whic|hName is|
|00003d50| 20 69 6e 20 6f 70 65 6e | 44 6f 63 73 20 74 68 65 | in open|Docs the|
|00003d60| 6e 0d 70 75 74 20 30 20 | 69 6e 74 6f 20 65 78 74 |n.put 0 |into ext|
|00003d70| 72 61 4e 6f 0d 72 65 70 | 65 61 74 0d 61 64 64 20 |raNo.rep|eat.add |
|00003d80| 31 20 74 6f 20 65 78 74 | 72 61 4e 6f 0d 70 75 74 |1 to ext|raNo.put|
|00003d90| 20 77 6f 72 64 20 31 20 | 6f 66 20 77 68 69 63 68 | word 1 |of which|
|00003da0| 4e 61 6d 65 20 26 26 20 | 65 78 74 72 61 4e 6f 20 |Name && |extraNo |
|00003db0| 69 6e 74 6f 20 74 65 73 | 74 4e 61 6d 65 0d 69 66 |into tes|tName.if|
|00003dc0| 20 77 6f 72 64 20 32 20 | 6f 66 20 77 68 69 63 68 | word 2 |of which|
|00003dd0| 4e 61 6d 65 20 ad 20 22 | 22 0d 74 68 65 6e 20 70 |Name . "|".then p|
|00003de0| 75 74 20 22 20 22 20 26 | 20 77 6f 72 64 20 32 20 |ut " " &| word 2 |
|00003df0| 6f 66 20 77 68 69 63 68 | 4e 61 6d 65 20 61 66 74 |of which|Name aft|
|00003e00| 65 72 20 74 65 73 74 4e | 61 6d 65 0d 69 66 20 74 |er testN|ame.if t|
|00003e10| 65 73 74 4e 61 6d 65 20 | 69 73 20 6e 6f 74 20 69 |estName |is not i|
|00003e20| 6e 20 6f 70 65 6e 44 6f | 63 73 20 74 68 65 6e 0d |n openDo|cs then.|
|00003e30| 70 75 74 20 74 65 73 74 | 4e 61 6d 65 20 69 6e 74 |put test|Name int|
|00003e40| 6f 20 77 68 69 63 68 4e | 61 6d 65 0d 65 78 69 74 |o whichN|ame.exit|
|00003e50| 20 72 65 70 65 61 74 0d | 65 6e 64 20 69 66 0d 69 | repeat.|end if.i|
|00003e60| 66 20 65 78 74 72 61 4e | 6f 20 3e 20 31 32 38 20 |f extraN|o > 128 |
|00003e70| 74 68 65 6e 0d 73 68 6f | 77 45 72 72 6f 72 20 31 |then.sho|wError 1|
|00003e80| 36 2c 6d 6c 28 77 68 69 | 63 68 41 63 74 69 6f 6e |6,ml(whi|chAction|
|00003e90| 29 0d 72 65 74 75 72 6e | 20 22 22 0d 65 6e 64 20 |).return| "".end |
|00003ea0| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |if.end r|epeat.en|
|00003eb0| 64 20 69 66 0d 70 75 74 | 20 77 68 69 63 68 41 63 |d if.put| whichAc|
|00003ec0| 74 69 6f 6e 20 69 6e 74 | 6f 20 74 68 65 41 63 74 |tion int|o theAct|
|00003ed0| 69 6f 6e 0d 69 66 20 77 | 68 69 63 68 41 63 74 69 |ion.if w|hichActi|
|00003ee0| 6f 6e 20 3d 20 22 4e 65 | 77 22 20 74 68 65 6e 0d |on = "Ne|w" then.|
|00003ef0| 70 75 74 20 22 63 72 65 | 61 74 65 20 61 20 6e 65 |put "cre|ate a ne|
|00003f00| 77 22 20 26 26 20 74 68 | 65 54 79 70 65 20 26 26 |w" && th|eType &&|
|00003f10| 20 22 64 6f 63 75 6d 65 | 6e 74 22 20 69 6e 74 6f | "docume|nt" into|
|00003f20| 20 77 68 69 63 68 41 63 | 74 69 6f 6e 0d 70 75 74 | whichAc|tion.put|
|00003f30| 20 70 6c 75 67 46 6f 6c | 64 65 72 20 26 20 74 68 | plugFol|der & th|
|00003f40| 65 54 79 70 65 20 69 6e | 74 6f 20 73 6f 75 72 63 |eType in|to sourc|
|00003f50| 65 53 74 61 63 6b 0d 65 | 6c 73 65 20 69 66 20 77 |eStack.e|lse if w|
|00003f60| 68 69 63 68 41 63 74 69 | 6f 6e 20 3d 20 22 4f 70 |hichActi|on = "Op|
|00003f70| 65 6e 22 20 74 68 65 6e | 0d 70 75 74 20 22 6f 70 |en" then|.put "op|
|00003f80| 65 6e 20 74 68 65 22 20 | 26 26 20 74 68 65 54 79 |en the" |&& theTy|
|00003f90| 70 65 20 26 26 20 22 20 | 64 6f 63 75 6d 65 6e 74 |pe && " |document|
|00003fa0| 20 d2 22 20 26 20 77 68 | 69 63 68 4e 61 6d 65 20 | ." & wh|ichName |
|00003fb0| 26 20 22 d3 22 20 69 6e | 74 6f 20 77 68 69 63 68 |& "." in|to which|
|00003fc0| 41 63 74 69 6f 6e 0d 70 | 75 74 20 70 6c 75 67 46 |Action.p|ut plugF|
|00003fd0| 6f 6c 64 65 72 20 26 20 | 74 68 65 54 79 70 65 20 |older & |theType |
|00003fe0| 69 6e 74 6f 20 73 6f 75 | 72 63 65 53 74 61 63 6b |into sou|rceStack|
|00003ff0| 0d 65 6c 73 65 20 69 66 | 20 77 68 69 63 68 41 63 |.else if| whichAc|
|00004000| 74 69 6f 6e 20 3d 20 22 | 53 61 76 65 22 20 74 68 |tion = "|Save" th|
|00004010| 65 6e 0d 70 75 74 20 22 | 73 61 76 65 20 74 68 65 |en.put "|save the|
|00004020| 20 64 6f 63 75 6d 65 6e | 74 20 61 73 20 d2 22 20 | documen|t as ." |
|00004030| 26 20 77 68 69 63 68 4e | 61 6d 65 20 26 20 22 d3 |& whichN|ame & ".|
|00004040| 22 20 69 6e 74 6f 20 77 | 68 69 63 68 41 63 74 69 |" into w|hichActi|
|00004050| 6f 6e 0d 70 75 74 20 74 | 65 6d 70 46 6f 6c 64 65 |on.put t|empFolde|
|00004060| 72 20 26 20 6f 70 65 6e | 44 6f 63 28 29 20 69 6e |r & open|Doc() in|
|00004070| 74 6f 20 73 6f 75 72 63 | 65 53 74 61 63 6b 0d 70 |to sourc|eStack.p|
|00004080| 75 74 20 74 68 65 20 6c | 6f 63 20 6f 66 20 63 64 |ut the l|oc of cd|
|00004090| 20 77 69 6e 64 6f 77 20 | 69 6e 74 6f 20 74 65 6d | window |into tem|
|000040a0| 70 4c 6f 63 0d 65 6c 73 | 65 20 72 65 74 75 72 6e |pLoc.els|e return|
|000040b0| 20 22 22 0d 70 75 74 20 | 63 68 65 63 6b 4c 65 6e | "".put |checkLen|
|000040c0| 67 74 68 28 77 68 69 63 | 68 4e 61 6d 65 2c 74 68 |gth(whic|hName,th|
|000040d0| 65 54 79 70 65 29 20 69 | 6e 74 6f 20 77 68 69 63 |eType) i|nto whic|
|000040e0| 68 4e 61 6d 65 0d 70 75 | 74 20 74 65 6d 70 46 6f |hName.pu|t tempFo|
|000040f0| 6c 64 65 72 20 26 20 77 | 68 69 63 68 4e 61 6d 65 |lder & w|hichName|
|00004100| 20 69 6e 74 6f 20 6e 65 | 77 53 74 61 63 6b 0d 70 | into ne|wStack.p|
|00004110| 75 74 20 73 6f 75 72 63 | 65 53 74 61 63 6b 20 26 |ut sourc|eStack &|
|00004120| 20 72 65 74 75 72 6e 20 | 26 20 6e 65 77 53 74 61 | return |& newSta|
|00004130| 63 6b 20 69 6e 74 6f 20 | 74 65 6d 70 53 74 61 63 |ck into |tempStac|
|00004140| 6b 73 0d 69 66 20 74 68 | 65 41 63 74 69 6f 6e 20 |ks.if th|eAction |
|00004150| 69 73 20 69 6e 20 22 4e | 65 77 2c 4f 70 65 6e 22 |is in "N|ew,Open"|
|00004160| 20 74 68 65 6e 0d 67 6c | 6f 62 61 6c 20 70 69 63 | then.gl|obal pic|
|00004170| 74 75 72 65 4c 6f 63 2c | 61 63 74 75 61 6c 53 69 |tureLoc,|actualSi|
|00004180| 7a 65 2c 6c 61 72 67 65 | 53 63 61 6c 65 2c 6c 61 |ze,large|Scale,la|
|00004190| 72 67 65 44 65 63 6b 2c | 70 69 63 74 75 72 65 4e |rgeDeck,|pictureN|
|000041a0| 61 6d 65 0d 69 66 20 6c | 61 72 67 65 44 65 63 6b |ame.if l|argeDeck|
|000041b0| 20 ad 20 22 22 20 74 68 | 65 6e 0d 69 66 20 69 74 | . "" th|en.if it|
|000041c0| 65 6d 20 31 20 6f 66 20 | 70 69 63 74 75 72 65 4c |em 1 of |pictureL|
|000041d0| 6f 63 20 3c 20 72 6f 75 | 6e 64 28 69 74 65 6d 20 |oc < rou|nd(item |
|000041e0| 33 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 52 |3 of the| screenR|
|000041f0| 65 63 74 2f 33 29 0d 74 | 68 65 6e 20 70 75 74 20 |ect/3).t|hen put |
|00004200| 73 63 61 6c 65 41 72 65 | 61 28 61 63 74 75 61 6c |scaleAre|a(actual|
|00004210| 53 69 7a 65 2c 6c 61 72 | 67 65 53 63 61 6c 65 29 |Size,lar|geScale)|
|00004220| 20 69 6e 74 6f 20 70 69 | 63 74 75 72 65 4c 6f 63 | into pi|ctureLoc|
|00004230| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|00004240| 69 6e 64 6f 77 20 6c 61 | 72 67 65 44 65 63 6b 20 |indow la|rgeDeck |
|00004250| 74 68 65 6e 0d 69 66 20 | 74 68 65 72 65 20 69 73 |then.if |there is|
|00004260| 20 61 20 77 69 6e 64 6f | 77 20 70 69 63 74 75 72 | a windo|w pictur|
|00004270| 65 4e 61 6d 65 20 74 68 | 65 6e 0d 67 65 74 20 70 |eName th|en.get p|
|00004280| 69 63 74 75 72 65 4e 61 | 6d 65 0d 65 6c 73 65 20 |ictureNa|me.else |
|00004290| 67 65 74 20 6c 61 72 67 | 65 44 65 63 6b 0d 73 65 |get larg|eDeck.se|
|000042a0| 74 20 74 68 65 20 67 6c | 6f 62 61 6c 52 65 63 74 |t the gl|obalRect|
|000042b0| 20 6f 66 20 77 69 6e 64 | 6f 77 20 69 74 20 74 6f | of wind|ow it to|
|000042c0| 20 70 69 63 74 75 72 65 | 4c 6f 63 0d 65 6e 64 20 | picture|Loc.end |
|000042d0| 69 66 0d 65 6e 64 20 69 | 66 0d 67 65 74 20 6e 6c |if.end i|f.get nl|
|000042e0| 28 6f 70 65 6e 44 6f 63 | 73 29 0d 70 75 74 20 28 |(openDoc|s).put (|
|000042f0| 69 74 20 2a 20 31 36 29 | 20 26 20 22 2c 22 20 26 |it * 16)| & "," &|
|00004300| 20 28 34 30 20 2b 20 28 | 69 74 20 2a 20 31 30 29 | (40 + (|it * 10)|
|00004310| 29 20 69 6e 74 6f 20 6e | 65 77 4c 6f 63 0d 65 6c |) into n|ewLoc.el|
|00004320| 73 65 20 70 75 74 20 69 | 74 65 6d 20 31 20 74 6f |se put i|tem 1 to|
|00004330| 20 32 20 6f 66 20 73 75 | 62 74 72 61 63 74 41 72 | 2 of su|btractAr|
|00004340| 65 61 28 74 68 65 20 72 | 65 63 74 20 6f 66 20 74 |ea(the r|ect of t|
|00004350| 68 69 73 20 63 64 29 20 | 69 6e 74 6f 20 6e 65 77 |his cd) |into new|
|00004360| 4c 6f 63 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |Loc.if t|here is |
|00004370| 6e 6f 74 20 61 20 73 74 | 61 63 6b 20 73 6f 75 72 |not a st|ack sour|
|00004380| 63 65 53 74 61 63 6b 20 | 74 68 65 6e 0d 73 68 6f |ceStack |then.sho|
|00004390| 77 45 72 72 6f 72 20 31 | 37 2c 6d 6c 28 77 68 69 |wError 1|7,ml(whi|
|000043a0| 63 68 41 63 74 69 6f 6e | 2c 73 6f 75 72 63 65 53 |chAction|,sourceS|
|000043b0| 74 61 63 6b 29 0d 72 65 | 74 75 72 6e 20 22 22 0d |tack).re|turn "".|
|000043c0| 65 6e 64 20 69 66 0d 6c | 6f 63 6b 20 6d 65 73 73 |end if.l|ock mess|
|000043d0| 61 67 65 73 0d 69 66 20 | 74 68 65 41 63 74 69 6f |ages.if |theActio|
|000043e0| 6e 20 69 73 20 69 6e 20 | 22 4e 65 77 2c 4f 70 65 |n is in |"New,Ope|
|000043f0| 6e 22 20 74 68 65 6e 0d | 67 6f 20 73 74 61 63 6b |n" then.|go stack|
|00004400| 20 73 6f 75 72 63 65 53 | 74 61 63 6b 20 69 6e 20 | sourceS|tack in |
|00004410| 61 20 6e 65 77 20 77 69 | 6e 64 6f 77 0d 68 69 64 |a new wi|ndow.hid|
|00004420| 65 20 63 64 20 77 69 6e | 64 6f 77 0d 65 6e 64 20 |e cd win|dow.end |
|00004430| 69 66 0d 63 72 65 61 74 | 65 20 73 74 61 63 6b 20 |if.creat|e stack |
|00004440| 6e 65 77 53 74 61 63 6b | 20 77 69 74 68 20 62 67 |newStack| with bg|
|00004450| 20 22 42 75 74 74 6f 6e | 73 22 20 69 6e 20 61 20 | "Button|s" in a |
|00004460| 6e 65 77 20 77 69 6e 64 | 6f 77 0d 69 66 20 74 68 |new wind|ow.if th|
|00004470| 65 41 63 74 69 6f 6e 20 | 69 73 20 69 6e 20 22 4e |eAction |is in "N|
|00004480| 65 77 2c 4f 70 65 6e 2c | 53 61 76 65 22 20 74 68 |ew,Open,|Save" th|
|00004490| 65 6e 0d 70 75 74 20 74 | 68 65 20 72 65 63 74 20 |en.put t|he rect |
|000044a0| 6f 66 20 63 64 20 77 69 | 6e 64 6f 77 20 69 6e 74 |of cd wi|ndow int|
|000044b0| 6f 20 72 0d 69 66 20 74 | 6f 6c 50 72 65 66 20 74 |o r.if t|olPref t|
|000044c0| 68 65 6e 20 67 65 74 20 | 31 20 65 6c 73 65 20 67 |hen get |1 else g|
|000044d0| 65 74 20 33 32 0d 73 75 | 62 74 72 61 63 74 20 69 |et 32.su|btract i|
|000044e0| 74 20 66 72 6f 6d 20 69 | 74 65 6d 20 33 20 6f 66 |t from i|tem 3 of|
|000044f0| 20 72 0d 73 65 74 20 74 | 68 65 20 72 65 63 74 20 | r.set t|he rect |
|00004500| 6f 66 20 63 64 20 77 69 | 6e 64 6f 77 20 74 6f 20 |of cd wi|ndow to |
|00004510| 72 0d 69 66 20 74 68 65 | 41 63 74 69 6f 6e 20 ad |r.if the|Action .|
|00004520| 20 22 53 61 76 65 22 20 | 74 68 65 6e 20 68 69 64 | "Save" |then hid|
|00004530| 65 20 63 64 20 77 69 6e | 64 6f 77 0d 65 6e 64 20 |e cd win|dow.end |
|00004540| 69 66 0d 69 66 20 74 68 | 65 20 72 65 73 75 6c 74 |if.if th|e result|
|00004550| 20 ad 20 22 22 20 74 68 | 65 6e 0d 69 66 20 74 68 | . "" th|en.if th|
|00004560| 65 41 63 74 69 6f 6e 20 | 69 73 20 69 6e 20 22 4e |eAction |is in "N|
|00004570| 65 77 2c 4f 70 65 6e 22 | 0d 74 68 65 6e 20 64 6f |ew,Open"|.then do|
|00004580| 4d 65 6e 75 20 22 63 6c | 6f 73 65 20 53 74 61 63 |Menu "cl|ose Stac|
|00004590| 6b 22 0d 73 68 6f 77 45 | 72 72 6f 72 20 31 38 2c |k".showE|rror 18,|
|000045a0| 6d 6c 28 77 68 69 63 68 | 41 63 74 69 6f 6e 2c 76 |ml(which|Action,v|
|000045b0| 6f 6c 75 6d 65 4e 61 6d | 65 28 29 29 0d 69 66 20 |olumeNam|e()).if |
|000045c0| 6f 70 65 6e 44 6f 63 28 | 29 20 ad 20 22 22 20 74 |openDoc(|) . "" t|
|000045d0| 68 65 6e 20 64 6f 4d 65 | 6e 75 20 6f 70 65 6e 44 |hen doMe|nu openD|
|000045e0| 6f 63 28 29 0d 72 65 74 | 75 72 6e 20 22 22 0d 65 |oc().ret|urn "".e|
|000045f0| 6e 64 20 69 66 0d 73 65 | 74 20 74 68 65 20 6c 6f |nd if.se|t the lo|
|00004600| 63 20 6f 66 20 63 64 20 | 77 69 6e 64 6f 77 20 74 |c of cd |window t|
|00004610| 6f 20 6e 65 77 4c 6f 63 | 0d 69 66 20 74 68 65 41 |o newLoc|.if theA|
|00004620| 63 74 69 6f 6e 20 3d 20 | 22 53 61 76 65 22 20 74 |ction = |"Save" t|
|00004630| 68 65 6e 0d 63 6f 6c 6f | 72 69 7a 65 48 43 20 22 |hen.colo|rizeHC "|
|00004640| 61 73 73 69 67 6e 54 6f | 46 72 6f 6e 74 22 0d 67 |assignTo|Front".g|
|00004650| 6f 20 74 6f 20 74 68 69 | 73 20 63 61 72 64 0d 68 |o to thi|s card.h|
|00004660| 69 64 65 20 63 64 20 77 | 69 6e 64 6f 77 0d 73 68 |ide cd w|indow.sh|
|00004670| 6f 77 20 63 64 20 77 69 | 6e 64 6f 77 0d 75 6e 6c |ow cd wi|ndow.unl|
|00004680| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 75 6e 6c 6f 63 |ock scre|en.unloc|
|00004690| 6b 20 6d 65 73 73 61 67 | 65 73 0d 6c 6f 63 6b 20 |k messag|es.lock |
|000046a0| 6d 65 73 73 61 67 65 73 | 0d 65 6e 64 20 69 66 0d |messages|.end if.|
|000046b0| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 67 6f 20 73 |lock scr|een.go s|
|000046c0| 74 61 63 6b 20 73 6f 75 | 72 63 65 53 74 61 63 6b |tack sou|rceStack|
|000046d0| 20 69 6e 20 61 20 6e 65 | 77 20 77 69 6e 64 6f 77 | in a ne|w window|
|000046e0| 0d 64 6f 4d 65 6e 75 20 | 22 63 6c 6f 73 65 20 53 |.doMenu |"close S|
|000046f0| 74 61 63 6b 22 0d 75 6e | 6c 6f 63 6b 20 6d 65 73 |tack".un|lock mes|
|00004700| 73 61 67 65 73 0d 69 66 | 20 74 68 65 41 63 74 69 |sages.if| theActi|
|00004710| 6f 6e 20 3d 20 22 53 61 | 76 65 22 20 74 68 65 6e |on = "Sa|ve" then|
|00004720| 0d 65 72 61 73 65 46 69 | 6c 65 20 73 6f 75 72 63 |.eraseFi|le sourc|
|00004730| 65 53 74 61 63 6b 0d 69 | 66 20 74 68 65 20 72 65 |eStack.i|f the re|
|00004740| 73 75 6c 74 20 ad 20 22 | 22 0d 74 68 65 6e 20 73 |sult . "|".then s|
|00004750| 68 6f 77 51 75 69 74 20 | 33 35 2c 6d 6c 28 6c 65 |howQuit |35,ml(le|
|00004760| 61 66 4e 61 6d 65 28 73 | 6f 75 72 63 65 53 74 61 |afName(s|ourceSta|
|00004770| 63 6b 29 29 0d 65 6e 64 | 20 69 66 0d 69 66 20 69 |ck)).end| if.if i|
|00004780| 73 50 72 6f 67 28 29 20 | 74 68 65 6e 0d 73 74 6f |sProg() |then.sto|
|00004790| 70 45 6e 61 62 6c 65 0d | 65 6c 73 65 20 73 65 74 |pEnable.|else set|
|000047a0| 20 74 68 65 20 63 61 6e | 74 41 62 6f 72 74 20 6f | the can|tAbort o|
|000047b0| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 74 6f 20 |f this s|tack to |
|000047c0| 46 41 4c 53 45 0d 72 65 | 74 75 72 6e 20 6c 65 61 |FALSE.re|turn lea|
|000047d0| 66 4e 61 6d 65 28 6e 65 | 77 53 74 61 63 6b 29 0d |fName(ne|wStack).|
|000047e0| 65 6e 64 20 63 72 65 61 | 74 65 4e 65 77 57 69 6e |end crea|teNewWin|
|000047f0| 64 6f 77 0d 0d 66 75 6e | 63 74 69 6f 6e 20 63 61 |dow..fun|ction ca|
|00004800| 72 64 43 6f 75 6e 74 20 | 4c 0d 70 75 74 20 30 20 |rdCount |L.put 0 |
|00004810| 69 6e 74 6f 20 63 61 72 | 64 43 6f 75 6e 74 0d 67 |into car|dCount.g|
|00004820| 65 74 20 67 65 74 52 28 | 4c 29 0d 72 65 70 65 61 |et getR(|L).repea|
|00004830| 74 20 77 69 74 68 20 69 | 20 3d 20 31 20 74 6f 20 |t with i| = 1 to |
|00004840| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |the numb|er of it|
|00004850| 65 6d 73 20 6f 66 20 69 | 74 0d 69 66 20 69 74 65 |ems of i|t.if ite|
|00004860| 6d 20 69 20 6f 66 20 69 | 74 20 ad 20 22 3f 20 3f |m i of i|t . "? ?|
|00004870| 22 20 74 68 65 6e 20 61 | 64 64 20 31 20 74 6f 20 |" then a|dd 1 to |
|00004880| 63 61 72 64 43 6f 75 6e | 74 0d 65 6e 64 20 72 65 |cardCoun|t.end re|
|00004890| 70 65 61 74 0d 72 65 74 | 75 72 6e 20 63 61 72 64 |peat.ret|urn card|
|000048a0| 43 6f 75 6e 74 0d 65 6e | 64 20 63 61 72 64 43 6f |Count.en|d cardCo|
|000048b0| 75 6e 74 0d 0d 66 75 6e | 63 74 69 6f 6e 20 63 61 |unt..fun|ction ca|
|000048c0| 72 64 73 43 6f 6d 70 6c | 65 74 65 20 4c 0d 72 65 |rdsCompl|ete L.re|
|000048d0| 74 75 72 6e 20 28 22 3f | 20 3f 22 20 69 73 20 6e |turn ("?| ?" is n|
|000048e0| 6f 74 20 69 6e 20 67 65 | 74 52 28 4c 29 29 0d 65 |ot in ge|tR(L)).e|
|000048f0| 6e 64 20 63 61 72 64 73 | 43 6f 6d 70 6c 65 74 65 |nd cards|Complete|
|00004900| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 76 6f 6c 75 6d |..functi|on volum|
|00004910| 65 4e 61 6d 65 0d 67 6c | 6f 62 61 6c 20 74 65 6d |eName.gl|obal tem|
|00004920| 70 46 6f 6c 64 65 72 0d | 73 65 74 20 74 68 65 20 |pFolder.|set the |
|00004930| 69 74 65 6d 44 65 6c 69 | 6d 69 74 65 72 20 74 6f |itemDeli|miter to|
|00004940| 20 22 3a 22 0d 70 75 74 | 20 69 74 65 6d 20 31 20 | ":".put| item 1 |
|00004950| 6f 66 20 74 65 6d 70 46 | 6f 6c 64 65 72 20 69 6e |of tempF|older in|
|00004960| 74 6f 20 69 0d 73 65 74 | 20 74 68 65 20 69 74 65 |to i.set| the ite|
|00004970| 6d 44 65 6c 69 6d 69 74 | 65 72 20 74 6f 20 63 6f |mDelimit|er to co|
|00004980| 6d 6d 61 0d 72 65 74 75 | 72 6e 20 69 0d 65 6e 64 |mma.retu|rn i.end|
|00004990| 20 76 6f 6c 75 6d 65 4e | 61 6d 65 0d 0d 66 75 6e | volumeN|ame..fun|
|000049a0| 63 74 69 6f 6e 20 63 68 | 65 63 6b 4c 65 6e 67 74 |ction ch|eckLengt|
|000049b0| 68 20 74 68 65 46 69 6c | 65 6e 61 6d 65 2c 74 68 |h theFil|ename,th|
|000049c0| 65 4c 61 79 6f 75 74 0d | 70 75 74 20 22 20 28 22 |eLayout.|put " ("|
|000049d0| 20 26 20 74 68 65 4c 61 | 79 6f 75 74 20 26 20 22 | & theLa|yout & "|
|000049e0| 29 22 20 69 6e 74 6f 20 | 6c 61 79 6f 75 74 4e 61 |)" into |layoutNa|
|000049f0| 6d 65 0d 69 66 20 6c 65 | 6e 67 74 68 20 28 74 68 |me.if le|ngth (th|
|00004a00| 65 46 69 6c 65 4e 61 6d | 65 20 26 20 6c 61 79 6f |eFileNam|e & layo|
|00004a10| 75 74 4e 61 6d 65 29 20 | 3c 20 33 31 0d 74 68 65 |utName) |< 31.the|
|00004a20| 6e 20 72 65 74 75 72 6e | 20 28 74 68 65 46 69 6c |n return| (theFil|
|00004a30| 65 4e 61 6d 65 20 26 20 | 6c 61 79 6f 75 74 4e 61 |eName & |layoutNa|
|00004a40| 6d 65 29 0d 70 75 74 20 | 74 68 65 46 69 6c 65 6e |me).put |theFilen|
|00004a50| 61 6d 65 20 69 6e 74 6f | 20 69 0d 72 65 70 65 61 |ame into| i.repea|
|00004a60| 74 0d 70 75 74 20 69 20 | 26 20 22 c9 22 20 26 20 |t.put i |& "." & |
|00004a70| 6c 61 79 6f 75 74 4e 61 | 6d 65 20 69 6e 74 6f 20 |layoutNa|me into |
|00004a80| 6a 0d 69 66 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |j.if the| length |
|00004a90| 6f 66 20 6a 20 3e 20 33 | 30 20 74 68 65 6e 0d 64 |of j > 3|0 then.d|
|00004aa0| 65 6c 65 74 65 20 74 68 | 65 20 6c 61 73 74 20 63 |elete th|e last c|
|00004ab0| 68 61 72 20 6f 66 20 69 | 0d 69 66 20 74 68 65 20 |har of i|.if the |
|00004ac0| 6c 61 73 74 20 63 68 61 | 72 20 6f 66 20 69 20 3d |last cha|r of i =|
|00004ad0| 20 22 20 22 20 74 68 65 | 6e 0d 64 65 6c 65 74 65 | " " the|n.delete|
|00004ae0| 20 74 68 65 20 6c 61 73 | 74 20 63 68 61 72 20 6f | the las|t char o|
|00004af0| 66 20 69 0d 65 6e 64 20 | 69 66 0d 65 6c 73 65 20 |f i.end |if.else |
|00004b00| 65 78 69 74 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |exit rep|eat.end |
|00004b10| 72 65 70 65 61 74 0d 72 | 65 74 75 72 6e 20 6a 0d |repeat.r|eturn j.|
|00004b20| 65 6e 64 20 63 68 65 63 | 6b 4c 65 6e 67 74 68 0d |end chec|kLength.|
|00004b30| 0d 66 75 6e 63 74 69 6f | 6e 20 74 72 75 6e 63 54 |.functio|n truncT|
|00004b40| 65 78 74 20 74 2c 6e 0d | 69 66 20 6c 65 6e 67 74 |ext t,n.|if lengt|
|00004b50| 68 28 74 29 20 b2 20 6e | 20 74 68 65 6e 20 72 65 |h(t) . n| then re|
|00004b60| 74 75 72 6e 20 74 0d 67 | 65 74 20 74 68 65 20 6c |turn t.g|et the l|
|00004b70| 61 73 74 20 63 68 61 72 | 20 6f 66 20 74 0d 69 66 |ast char| of t.if|
|00004b80| 20 69 74 20 69 73 20 69 | 6e 20 28 22 2e 3f 21 d3 | it is i|n (".?!.|
|00004b90| 22 20 26 20 71 75 6f 74 | 65 20 26 20 22 d5 27 22 |" & quot|e & ".'"|
|00004ba0| 29 20 74 68 65 6e 0d 70 | 75 74 20 69 74 20 69 6e |) then.p|ut it in|
|00004bb0| 74 6f 20 74 45 0d 70 75 | 74 20 32 20 69 6e 74 6f |to tE.pu|t 2 into|
|00004bc0| 20 6d 0d 65 6c 73 65 0d | 70 75 74 20 22 22 20 69 | m.else.|put "" i|
|00004bd0| 6e 74 6f 20 74 45 0d 70 | 75 74 20 31 20 69 6e 74 |nto tE.p|ut 1 int|
|00004be0| 6f 20 6d 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 28 |o m.end |if.put (|
|00004bf0| 63 68 61 72 20 31 20 74 | 6f 20 6e 2d 6d 20 6f 66 |char 1 t|o n-m of|
|00004c00| 20 74 29 20 69 6e 74 6f | 20 74 0d 69 66 20 74 68 | t) into| t.if th|
|00004c10| 65 20 6c 61 73 74 20 63 | 68 61 72 20 6f 66 20 74 |e last c|har of t|
|00004c20| 20 69 73 20 69 6e 20 22 | 2e 2c 3f 21 20 3a 3b d2 | is in "|.,?! :;.|
|00004c30| c0 22 0d 74 68 65 6e 20 | 64 65 6c 65 74 65 20 74 |.".then |delete t|
|00004c40| 68 65 20 6c 61 73 74 20 | 63 68 61 72 20 6f 66 20 |he last |char of |
|00004c50| 74 0d 72 65 74 75 72 6e | 20 28 74 20 26 20 22 c9 |t.return| (t & ".|
|00004c60| 22 20 26 20 74 45 29 0d | 65 6e 64 20 74 72 75 6e |" & tE).|end trun|
|00004c70| 63 54 65 78 74 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |cText..f|unction |
|00004c80| 64 6f 63 4e 61 6d 65 20 | 69 0d 72 65 74 75 72 6e |docName |i.return|
|00004c90| 20 28 63 68 61 72 20 31 | 20 74 6f 20 28 6f 66 66 | (char 1| to (off|
|00004ca0| 73 65 74 28 22 20 28 22 | 2c 69 29 2d 31 29 20 6f |set(" ("|,i)-1) o|
|00004cb0| 66 20 69 29 0d 65 6e 64 | 20 64 6f 63 4e 61 6d 65 |f i).end| docName|
|00004cc0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 62 6c 61 6e 6b |..functi|on blank|
|00004cd0| 44 6f 63 20 74 68 65 46 | 69 6c 65 4e 61 6d 65 2c |Doc theF|ileName,|
|00004ce0| 74 68 65 4c 61 79 6f 75 | 74 0d 69 66 20 74 68 65 |theLayou|t.if the|
|00004cf0| 46 69 6c 65 4e 61 6d 65 | 20 ad 20 22 22 20 74 68 |FileName| . "" th|
|00004d00| 65 6e 0d 70 75 74 20 22 | 64 6f 63 75 6d 65 6e 74 |en.put "|document|
|00004d10| 20 d2 22 20 26 20 74 68 | 65 46 69 6c 65 4e 61 6d | ." & th|eFileNam|
|00004d20| 65 20 26 20 22 d3 22 20 | 69 6e 74 6f 20 69 0d 69 |e & "." |into i.i|
|00004d30| 66 20 74 68 65 4c 61 79 | 6f 75 74 20 69 73 20 6e |f theLay|out is n|
|00004d40| 6f 74 20 69 6e 20 74 68 | 65 46 69 6c 65 4e 61 6d |ot in th|eFileNam|
|00004d50| 65 20 74 68 65 6e 0d 70 | 75 74 20 28 74 68 65 4c |e then.p|ut (theL|
|00004d60| 61 79 6f 75 74 20 26 26 | 20 69 29 20 69 6e 74 6f |ayout &&| i) into|
|00004d70| 20 69 0d 65 6e 64 20 69 | 66 0d 65 6c 73 65 20 70 | i.end i|f.else p|
|00004d80| 75 74 20 74 68 65 4c 61 | 79 6f 75 74 20 26 26 20 |ut theLa|yout && |
|00004d90| 22 64 6f 63 75 6d 65 6e | 74 20 d2 55 6e 74 69 74 |"documen|t .Untit|
|00004da0| 6c 65 64 d3 22 20 69 6e | 74 6f 20 69 0d 72 65 74 |led." in|to i.ret|
|00004db0| 75 72 6e 20 69 0d 65 6e | 64 20 62 6c 61 6e 6b 44 |urn i.en|d blankD|
|00004dc0| 6f 63 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 74 79 70 |oc..func|tion typ|
|00004dd0| 65 20 74 68 65 54 79 70 | 65 0d 67 6c 6f 62 61 6c |e theTyp|e.global|
|00004de0| 20 6c 6f 54 79 70 65 73 | 0d 72 65 74 75 72 6e 20 | loTypes|.return |
|00004df0| 69 74 65 6d 20 6c 61 79 | 6f 75 74 4e 6f 28 74 68 |item lay|outNo(th|
|00004e00| 65 54 79 70 65 29 20 6f | 66 20 6c 6f 54 79 70 65 |eType) o|f loType|
|00004e10| 73 0d 65 6e 64 20 74 79 | 70 65 0d 0d 66 75 6e 63 |s.end ty|pe..func|
|00004e20| 74 69 6f 6e 20 63 6c 65 | 61 6e 51 75 65 72 79 20 |tion cle|anQuery |
|00004e30| 74 0d 72 65 70 65 61 74 | 0d 67 65 74 20 74 68 65 |t.repeat|.get the|
|00004e40| 20 66 69 72 73 74 20 63 | 68 61 72 20 6f 66 20 74 | first c|har of t|
|00004e50| 0d 69 66 20 69 74 20 69 | 73 20 69 6e 20 22 2e 2c |.if it i|s in ".,|
|00004e60| 20 2c ca 2c 22 20 74 68 | 65 6e 0d 64 65 6c 65 74 | ,.," th|en.delet|
|00004e70| 65 20 74 68 65 20 66 69 | 72 73 74 20 63 68 61 72 |e the fi|rst char|
|00004e80| 20 6f 66 20 74 0d 65 6c | 73 65 20 65 78 69 74 20 | of t.el|se exit |
|00004e90| 72 65 70 65 61 74 0d 65 | 6e 64 20 72 65 70 65 61 |repeat.e|nd repea|
|00004ea0| 74 0d 69 66 20 74 68 65 | 20 6c 61 73 74 20 63 68 |t.if the| last ch|
|00004eb0| 61 72 20 6f 66 20 74 20 | 3d 20 72 65 74 75 72 6e |ar of t |= return|
|00004ec0| 0d 74 68 65 6e 20 64 65 | 6c 65 74 65 20 74 68 65 |.then de|lete the|
|00004ed0| 20 6c 61 73 74 20 63 68 | 61 72 20 6f 66 20 74 0d | last ch|ar of t.|
|00004ee0| 70 75 74 20 73 74 72 69 | 70 43 68 61 72 28 22 20 |put stri|pChar(" |
|00004ef0| 20 22 2c 74 29 20 69 6e | 74 6f 20 74 0d 70 75 74 | ",t) in|to t.put|
|00004f00| 20 73 74 72 69 70 43 68 | 61 72 28 63 6f 6d 6d 61 | stripCh|ar(comma|
|00004f10| 2c 74 29 20 69 6e 74 6f | 20 74 0d 69 66 20 6c 65 |,t) into| t.if le|
|00004f20| 6e 67 74 68 28 74 29 20 | 3e 20 39 30 20 74 68 65 |ngth(t) |> 90 the|
|00004f30| 6e 0d 69 66 20 74 68 65 | 20 6c 61 73 74 20 63 68 |n.if the| last ch|
|00004f40| 61 72 20 6f 66 20 74 20 | 69 73 20 69 6e 20 22 21 |ar of t |is in "!|
|00004f50| 2e c9 3f 22 20 74 68 65 | 6e 0d 70 75 74 20 28 63 |..?" the|n.put (c|
|00004f60| 68 61 72 20 31 20 74 6f | 20 38 38 20 6f 66 20 74 |har 1 to| 88 of t|
|00004f70| 29 20 26 20 22 c9 22 20 | 26 20 28 74 68 65 20 6c |) & "." |& (the l|
|00004f80| 61 73 74 20 63 68 61 72 | 20 6f 66 20 74 29 20 69 |ast char| of t) i|
|00004f90| 6e 74 6f 20 74 0d 65 6c | 73 65 20 70 75 74 20 28 |nto t.el|se put (|
|00004fa0| 63 68 61 72 20 31 20 74 | 6f 20 38 39 20 6f 66 20 |char 1 t|o 89 of |
|00004fb0| 74 29 20 26 20 22 c9 22 | 20 69 6e 74 6f 20 74 0d |t) & "."| into t.|
|00004fc0| 65 6e 64 20 69 66 0d 70 | 75 74 20 73 6d 61 72 74 |end if.p|ut smart|
|00004fd0| 65 6e 51 75 6f 74 65 73 | 28 74 29 20 69 6e 74 6f |enQuotes|(t) into|
|00004fe0| 20 74 0d 72 65 74 75 72 | 6e 20 74 0d 65 6e 64 20 | t.retur|n t.end |
|00004ff0| 63 6c 65 61 6e 51 75 65 | 72 79 0d 0d 0d 2d 2d 20 |cleanQue|ry...-- |
|00005000| a5 20 44 49 41 4c 4f 47 | 53 0d 0d 6f 6e 20 73 68 |. DIALOG|S..on sh|
|00005010| 6f 77 41 62 6f 75 74 42 | 6f 78 0d 67 6c 6f 62 61 |owAboutB|ox.globa|
|00005020| 6c 20 70 49 6e 66 6f 2c | 62 69 74 44 65 70 74 68 |l pInfo,|bitDepth|
|00005030| 2c 74 77 56 65 72 73 69 | 6f 6e 0d 69 66 20 6e 6f |,twVersi|on.if no|
|00005040| 74 20 63 68 65 63 6b 4d | 65 6d 28 32 30 30 29 20 |t checkM|em(200) |
|00005050| 74 68 65 6e 20 65 78 69 | 74 20 73 68 6f 77 41 62 |then exi|t showAb|
|00005060| 6f 75 74 42 6f 78 0d 70 | 75 74 20 22 22 20 69 6e |outBox.p|ut "" in|
|00005070| 74 6f 20 72 0d 69 66 20 | 62 69 74 44 65 70 74 68 |to r.if |bitDepth|
|00005080| 20 3e 20 32 20 74 68 65 | 6e 20 70 75 74 20 31 39 | > 2 the|n put 19|
|00005090| 30 20 69 6e 74 6f 20 70 | 20 65 6c 73 65 20 70 75 |0 into p| else pu|
|000050a0| 74 20 31 39 31 20 69 6e | 74 6f 20 70 0d 70 75 74 |t 191 in|to p.put|
|000050b0| 20 70 20 2b 20 32 20 69 | 6e 74 6f 20 71 0d 70 75 | p + 2 i|nto q.pu|
|000050c0| 74 20 6c 69 6e 65 20 31 | 20 6f 66 20 70 49 6e 66 |t line 1| of pInf|
|000050d0| 6f 20 69 6e 74 6f 20 74 | 0d 70 75 74 20 6d 53 74 |o into t|.put mSt|
|000050e0| 72 69 6e 67 28 36 38 29 | 20 26 20 74 77 56 65 72 |ring(68)| & twVer|
|000050f0| 73 69 6f 6e 20 69 6e 74 | 6f 20 76 0d 70 75 74 20 |sion int|o v.put |
|00005100| 64 4c 6f 63 28 33 32 37 | 36 36 29 20 69 6e 74 6f |dLoc(327|66) into|
|00005110| 20 77 69 6e 4c 6f 63 0d | 69 66 20 6c 69 6e 65 20 | winLoc.|if line |
|00005120| 32 20 6f 66 20 70 49 6e | 66 6f 20 ad 20 22 22 20 |2 of pIn|fo . "" |
|00005130| 74 68 65 6e 20 70 75 74 | 20 28 22 20 22 20 26 20 |then put| (" " & |
|00005140| 6c 69 6e 65 20 32 20 6f | 66 20 70 49 6e 66 6f 29 |line 2 o|f pInfo)|
|00005150| 20 61 66 74 65 72 20 74 | 0d 54 57 53 70 6c 61 73 | after t|.TWSplas|
|00005160| 68 53 63 72 65 65 6e 20 | 22 41 62 6f 75 74 22 2c |hScreen |"About",|
|00005170| 35 30 36 2c 32 39 30 2c | 22 53 63 72 65 65 6e 22 |506,290,|"Screen"|
|00005180| 2c 76 2c 22 31 38 39 2c | 32 36 37 22 2c c2 0d 22 |,v,"189,|267",.."|
|00005190| 45 73 70 79 20 53 61 6e | 73 22 2c 22 39 22 2c 70 |Espy San|s","9",p|
|000051a0| 2c 22 37 2c 37 22 2c 2c | 2c 2c 2c 74 2c 22 32 34 |,"7,7",,|,,,t,"24|
|000051b0| 35 2c 31 31 22 0d 73 65 | 74 20 74 68 65 20 6c 6f |5,11".se|t the lo|
|000051c0| 63 20 6f 66 20 77 69 6e | 64 6f 77 20 22 41 62 6f |c of win|dow "Abo|
|000051d0| 75 74 22 20 74 6f 20 77 | 69 6e 4c 6f 63 0d 54 57 |ut" to w|inLoc.TW|
|000051e0| 53 70 6c 61 73 68 53 63 | 72 65 65 6e 20 22 50 65 |SplashSc|reen "Pe|
|000051f0| 72 6d 69 73 73 69 6f 6e | 73 22 2c 35 30 36 2c 32 |rmission|s",506,2|
|00005200| 39 30 2c 22 53 63 72 65 | 65 6e 22 2c 22 20 22 2c |90,"Scre|en"," ",|
|00005210| 22 31 30 2c 32 30 30 22 | 2c c2 0d 22 45 73 70 79 |"10,200"|,.."Espy|
|00005220| 20 53 61 6e 73 22 2c 22 | 39 22 2c 71 2c 22 30 2c | Sans","|9",q,"0,|
|00005230| 37 22 2c 2c 2c 2c 2c 22 | 20 22 2c 22 31 30 2c 32 |7",,,,,"| ","10,2|
|00005240| 32 30 22 0d 73 65 74 20 | 74 68 65 20 6c 6f 63 20 |20".set |the loc |
|00005250| 6f 66 20 77 69 6e 64 6f | 77 20 22 50 65 72 6d 69 |of windo|w "Permi|
|00005260| 73 73 69 6f 6e 73 22 20 | 74 6f 20 77 69 6e 4c 6f |ssions" |to winLo|
|00005270| 63 0d 73 68 6f 77 20 77 | 69 6e 64 6f 77 20 22 41 |c.show w|indow "A|
|00005280| 62 6f 75 74 22 0d 69 66 | 20 74 68 65 20 6d 6f 75 |bout".if| the mou|
|00005290| 73 65 20 69 73 20 64 6f | 77 6e 20 74 68 65 6e 0d |se is do|wn then.|
|000052a0| 73 68 6f 77 50 65 72 6d | 69 73 73 69 6f 6e 73 0d |showPerm|issions.|
|000052b0| 65 78 69 74 20 73 68 6f | 77 41 62 6f 75 74 42 6f |exit sho|wAboutBo|
|000052c0| 78 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 72 6f 75 |x.end if|.put rou|
|000052d0| 6e 64 28 74 68 65 20 68 | 65 61 70 53 70 61 63 65 |nd(the h|eapSpace|
|000052e0| 2f 31 30 32 34 29 20 2d | 20 33 38 37 20 69 6e 74 |/1024) -| 387 int|
|000052f0| 6f 20 6b 0d 69 66 20 6b | 20 3c 20 30 20 74 68 65 |o k.if k| < 0 the|
|00005300| 6e 20 70 75 74 20 30 20 | 69 6e 74 6f 20 6b 0d 69 |n put 0 |into k.i|
|00005310| 66 20 6b 20 3e 20 31 30 | 32 34 20 74 68 65 6e 0d |f k > 10|24 then.|
|00005320| 73 65 74 20 6e 75 6d 62 | 65 72 46 6f 72 6d 61 74 |set numb|erFormat|
|00005330| 20 74 6f 20 22 23 2e 23 | 22 0d 70 75 74 20 28 6b | to "#.#|".put (k|
|00005340| 2f 31 30 32 34 29 20 26 | 26 20 6d 53 74 72 69 6e |/1024) &|& mStrin|
|00005350| 67 28 38 31 29 20 69 6e | 74 6f 20 6b 0d 65 6c 73 |g(81) in|to k.els|
|00005360| 65 0d 69 66 20 6c 65 6e | 67 74 68 28 6b 29 20 3e |e.if len|gth(k) >|
|00005370| 20 33 20 74 68 65 6e 20 | 70 75 74 20 22 2c 22 20 | 3 then |put "," |
|00005380| 61 66 74 65 72 20 63 68 | 61 72 20 28 6c 65 6e 67 |after ch|ar (leng|
|00005390| 74 68 28 6b 29 2d 33 29 | 20 6f 66 20 6b 0d 70 75 |th(k)-3)| of k.pu|
|000053a0| 74 20 6d 53 74 72 69 6e | 67 28 38 32 29 20 61 66 |t mStrin|g(82) af|
|000053b0| 74 65 72 20 6b 0d 65 6e | 64 20 69 66 0d 70 75 74 |ter k.en|d if.put|
|000053c0| 20 22 20 22 20 26 20 6d | 53 74 72 69 6e 67 28 38 | " " & m|String(8|
|000053d0| 33 29 20 61 66 74 65 72 | 20 6b 0d 69 66 20 74 68 |3) after| k.if th|
|000053e0| 65 20 6d 6f 75 73 65 20 | 69 73 20 64 6f 77 6e 20 |e mouse |is down |
|000053f0| 74 68 65 6e 0d 73 68 6f | 77 50 65 72 6d 69 73 73 |then.sho|wPermiss|
|00005400| 69 6f 6e 73 0d 65 78 69 | 74 20 73 68 6f 77 41 62 |ions.exi|t showAb|
|00005410| 6f 75 74 42 6f 78 0d 65 | 6e 64 20 69 66 0d 70 75 |outBox.e|nd if.pu|
|00005420| 74 20 6d 53 74 72 69 6e | 67 28 38 34 29 20 26 26 |t mStrin|g(84) &&|
|00005430| 20 74 68 65 20 73 79 73 | 74 65 6d 56 65 72 73 69 | the sys|temVersi|
|00005440| 6f 6e 20 69 6e 74 6f 20 | 73 76 0d 69 66 20 74 68 |on into |sv.if th|
|00005450| 65 20 6d 6f 75 73 65 20 | 69 73 20 64 6f 77 6e 20 |e mouse |is down |
|00005460| 74 68 65 6e 0d 73 68 6f | 77 50 65 72 6d 69 73 73 |then.sho|wPermiss|
|00005470| 69 6f 6e 73 0d 65 78 69 | 74 20 73 68 6f 77 41 62 |ions.exi|t showAb|
|00005480| 6f 75 74 42 6f 78 0d 65 | 6e 64 20 69 66 0d 72 65 |outBox.e|nd if.re|
|00005490| 70 65 61 74 0d 73 65 74 | 20 74 68 65 20 74 65 78 |peat.set| the tex|
|000054a0| 74 4c 69 6e 65 20 6f 66 | 20 77 69 6e 64 6f 77 20 |tLine of| window |
|000054b0| 22 41 62 6f 75 74 22 20 | 74 6f 20 76 0d 70 75 74 |"About" |to v.put|
|000054c0| 20 77 61 69 74 4b 6c 69 | 6b 28 29 20 69 6e 74 6f | waitKli|k() into|
|000054d0| 20 63 0d 69 66 20 63 20 | 74 68 65 6e 20 65 78 69 | c.if c |then exi|
|000054e0| 74 20 72 65 70 65 61 74 | 0d 73 65 74 20 74 68 65 |t repeat|.set the|
|000054f0| 20 74 65 78 74 4c 69 6e | 65 20 6f 66 20 77 69 6e | textLin|e of win|
|00005500| 64 6f 77 20 22 41 62 6f | 75 74 22 20 74 6f 20 6b |dow "Abo|ut" to k|
|00005510| 0d 70 75 74 20 77 61 69 | 74 4b 6c 69 6b 28 29 20 |.put wai|tKlik() |
|00005520| 69 6e 74 6f 20 63 0d 69 | 66 20 63 20 74 68 65 6e |into c.i|f c then|
|00005530| 20 65 78 69 74 20 72 65 | 70 65 61 74 0d 73 65 74 | exit re|peat.set|
|00005540| 20 74 68 65 20 74 65 78 | 74 4c 69 6e 65 20 6f 66 | the tex|tLine of|
|00005550| 20 77 69 6e 64 6f 77 20 | 22 41 62 6f 75 74 22 20 | window |"About" |
|00005560| 74 6f 20 73 76 0d 70 75 | 74 20 77 61 69 74 4b 6c |to sv.pu|t waitKl|
|00005570| 69 6b 28 29 20 69 6e 74 | 6f 20 63 0d 69 66 20 63 |ik() int|o c.if c|
|00005580| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|00005590| 74 0d 69 66 20 6e 6f 74 | 20 63 20 74 68 65 6e 0d |t.if not| c then.|
|000055a0| 70 75 74 20 30 20 69 6e | 74 6f 20 69 0d 69 66 20 |put 0 in|to i.if |
|000055b0| 72 20 3d 20 22 22 20 74 | 68 65 6e 0d 72 65 70 65 |r = "" t|hen.repe|
|000055c0| 61 74 20 35 32 0d 70 75 | 74 20 22 20 20 20 22 20 |at 52.pu|t " " |
|000055d0| 61 66 74 65 72 20 72 0d | 65 6e 64 20 72 65 70 65 |after r.|end repe|
|000055e0| 61 74 0d 70 75 74 20 6d | 53 74 72 69 6e 67 28 38 |at.put m|String(8|
|000055f0| 36 29 20 26 20 6d 53 74 | 72 69 6e 67 28 38 37 29 |6) & mSt|ring(87)|
|00005600| 20 26 20 6d 53 74 72 69 | 6e 67 28 38 38 29 20 26 | & mStri|ng(88) &|
|00005610| 20 6d 53 74 72 69 6e 67 | 28 38 39 29 20 61 66 74 | mString|(89) aft|
|00005620| 65 72 20 72 0d 70 75 74 | 20 22 ca ca ca ca ca ca |er r.put| "......|
|00005630| ca 22 20 61 66 74 65 72 | 20 72 0d 70 75 74 20 6c |." after| r.put l|
|00005640| 65 6e 67 74 68 28 72 29 | 20 69 6e 74 6f 20 4c 0d |ength(r)| into L.|
|00005650| 65 6e 64 20 69 66 0d 72 | 65 70 65 61 74 20 77 69 |end if.r|epeat wi|
|00005660| 74 68 20 78 20 3d 20 31 | 20 74 6f 20 4c 0d 72 65 |th x = 1| to L.re|
|00005670| 70 65 61 74 20 35 0d 70 | 75 74 20 28 74 68 65 20 |peat 5.p|ut (the |
|00005680| 6d 6f 75 73 65 20 69 73 | 20 64 6f 77 6e 29 20 69 |mouse is| down) i|
|00005690| 6e 74 6f 20 63 0d 69 66 | 20 63 20 74 68 65 6e 20 |nto c.if| c then |
|000056a0| 65 78 69 74 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |exit rep|eat.end |
|000056b0| 72 65 70 65 61 74 0d 69 | 66 20 63 20 74 68 65 6e |repeat.i|f c then|
|000056c0| 20 65 78 69 74 20 72 65 | 70 65 61 74 0d 61 64 64 | exit re|peat.add|
|000056d0| 20 31 20 74 6f 20 69 0d | 69 66 20 69 20 3e 20 4c | 1 to i.|if i > L|
|000056e0| 20 74 68 65 6e 20 70 75 | 74 20 31 20 69 6e 74 6f | then pu|t 1 into|
|000056f0| 20 69 0d 70 75 74 20 63 | 68 61 72 20 69 20 74 6f | i.put c|har i to|
|00005700| 20 28 69 2b 31 36 30 29 | 20 6f 66 20 72 20 69 6e | (i+160)| of r in|
|00005710| 74 6f 20 72 72 0d 73 65 | 74 20 74 68 65 20 74 65 |to rr.se|t the te|
|00005720| 78 74 4c 69 6e 65 20 6f | 66 20 77 69 6e 64 6f 77 |xtLine o|f window|
|00005730| 20 22 41 62 6f 75 74 22 | 20 74 6f 20 72 72 0d 65 | "About"| to rr.e|
|00005740| 6e 64 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |nd repea|t.end if|
|00005750| 0d 70 75 74 20 77 61 69 | 74 4b 6c 69 6b 28 29 20 |.put wai|tKlik() |
|00005760| 69 6e 74 6f 20 63 0d 69 | 66 20 63 20 74 68 65 6e |into c.i|f c then|
|00005770| 20 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 | exit re|peat.end|
|00005780| 20 72 65 70 65 61 74 0d | 73 68 6f 77 50 65 72 6d | repeat.|showPerm|
|00005790| 69 73 73 69 6f 6e 73 0d | 65 6e 64 20 73 68 6f 77 |issions.|end show|
|000057a0| 41 62 6f 75 74 42 6f 78 | 0d 0d 6f 6e 20 73 68 6f |AboutBox|..on sho|
|000057b0| 77 50 65 72 6d 69 73 73 | 69 6f 6e 73 0d 69 66 20 |wPermiss|ions.if |
|000057c0| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|000057d0| 77 20 22 50 65 72 6d 69 | 73 73 69 6f 6e 73 22 20 |w "Permi|ssions" |
|000057e0| 74 68 65 6e 0d 73 68 6f | 77 20 77 69 6e 64 6f 77 |then.sho|w window|
|000057f0| 20 22 50 65 72 6d 69 73 | 73 69 6f 6e 73 22 0d 69 | "Permis|sions".i|
|00005800| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00005810| 64 6f 77 20 22 41 62 6f | 75 74 22 0d 74 68 65 6e |dow "Abo|ut".then|
|00005820| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 22 41 | close w|indow "A|
|00005830| 62 6f 75 74 22 0d 72 65 | 70 65 61 74 0d 70 75 74 |bout".re|peat.put|
|00005840| 20 77 61 69 74 4b 6c 69 | 6b 28 29 20 69 6e 74 6f | waitKli|k() into|
|00005850| 20 63 0d 69 66 20 63 20 | 74 68 65 6e 20 65 78 69 | c.if c |then exi|
|00005860| 74 20 72 65 70 65 61 74 | 0d 65 6e 64 20 72 65 70 |t repeat|.end rep|
|00005870| 65 61 74 0d 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |eat.clos|e window|
|00005880| 20 22 50 65 72 6d 69 73 | 73 69 6f 6e 73 22 0d 65 | "Permis|sions".e|
|00005890| 6e 64 20 69 66 0d 69 66 | 20 74 68 65 72 65 20 69 |nd if.if| there i|
|000058a0| 73 20 61 20 77 69 6e 64 | 6f 77 20 22 41 62 6f 75 |s a wind|ow "Abou|
|000058b0| 74 22 0d 74 68 65 6e 20 | 63 6c 6f 73 65 20 77 69 |t".then |close wi|
|000058c0| 6e 64 6f 77 20 22 41 62 | 6f 75 74 22 0d 73 65 6e |ndow "Ab|out".sen|
|000058d0| 64 20 61 62 6f 75 74 44 | 65 63 6b 20 74 6f 20 74 |d aboutD|eck to t|
|000058e0| 68 69 73 20 63 64 0d 73 | 65 6e 64 20 61 62 6f 75 |his cd.s|end abou|
|000058f0| 74 43 6f 6d 6d 20 74 6f | 20 74 68 69 73 20 63 64 |tComm to| this cd|
|00005900| 0d 65 6e 64 20 73 68 6f | 77 50 65 72 6d 69 73 73 |.end sho|wPermiss|
|00005910| 69 6f 6e 73 0d 0d 6f 6e | 20 61 62 6f 75 74 44 65 |ions..on| aboutDe|
|00005920| 63 6b 0d 65 6e 64 20 61 | 62 6f 75 74 44 65 63 6b |ck.end a|boutDeck|
|00005930| 0d 0d 6f 6e 20 61 62 6f | 75 74 43 6f 6d 6d 0d 65 |..on abo|utComm.e|
|00005940| 6e 64 20 61 62 6f 75 74 | 43 6f 6d 6d 0d 0d 66 75 |nd about|Comm..fu|
|00005950| 6e 63 74 69 6f 6e 20 77 | 61 69 74 4b 6c 69 6b 0d |nction w|aitKlik.|
|00005960| 72 65 70 65 61 74 20 31 | 30 30 30 0d 70 75 74 20 |repeat 1|000.put |
|00005970| 28 74 68 65 20 6d 6f 75 | 73 65 20 69 73 20 64 6f |(the mou|se is do|
|00005980| 77 6e 29 20 69 6e 74 6f | 20 6b 0d 69 66 20 6b 20 |wn) into| k.if k |
|00005990| 74 68 65 6e 20 65 78 69 | 74 20 72 65 70 65 61 74 |then exi|t repeat|
|000059a0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|000059b0| 72 6e 20 6b 0d 65 6e 64 | 20 77 61 69 74 4b 6c 69 |rn k.end| waitKli|
|000059c0| 6b 0d 0d 6f 6e 20 73 68 | 6f 77 48 65 6c 70 0d 67 |k..on sh|owHelp.g|
|000059d0| 6c 6f 62 61 6c 20 62 69 | 74 44 65 70 74 68 2c 6c |lobal bi|tDepth,l|
|000059e0| 69 6e 65 4e 6f 0d 69 66 | 20 62 69 74 44 65 70 74 |ineNo.if| bitDept|
|000059f0| 68 20 3c 20 34 20 74 68 | 65 6e 0d 70 75 74 20 32 |h < 4 th|en.put 2|
|00005a00| 31 32 34 20 69 6e 74 6f | 20 77 68 69 63 68 44 49 |124 into| whichDI|
|00005a10| 54 4c 0d 65 6c 73 65 20 | 70 75 74 20 32 31 32 35 |TL.else |put 2125|
|00005a20| 20 69 6e 74 6f 20 77 68 | 69 63 68 44 49 54 4c 0d | into wh|ichDITL.|
|00005a30| 70 75 74 20 35 20 69 6e | 74 6f 20 6e 6f 4f 66 50 |put 5 in|to noOfP|
|00005a40| 69 63 74 73 0d 70 75 74 | 20 30 20 69 6e 74 6f 20 |icts.put| 0 into |
|00005a50| 66 69 72 73 74 49 63 6f | 6e 0d 70 75 74 20 30 20 |firstIco|n.put 0 |
|00005a60| 69 6e 74 6f 20 73 74 61 | 72 74 50 49 43 54 0d 69 |into sta|rtPICT.i|
|00005a70| 66 20 6e 6f 74 28 6c 61 | 79 6f 75 74 4f 70 65 6e |f not(la|youtOpen|
|00005a80| 28 29 29 20 74 68 65 6e | 0d 70 75 74 20 31 20 69 |()) then|.put 1 i|
|00005a90| 6e 74 6f 20 73 74 61 72 | 74 50 49 43 54 0d 65 6c |nto star|tPICT.el|
|00005aa0| 73 65 20 69 66 20 63 6f | 6d 6d 4f 70 65 6e 28 29 |se if co|mmOpen()|
|00005ab0| 20 74 68 65 6e 0d 70 75 | 74 20 35 20 69 6e 74 6f | then.pu|t 5 into|
|00005ac0| 20 73 74 61 72 74 50 49 | 43 54 0d 65 6c 73 65 0d | startPI|CT.else.|
|00005ad0| 69 66 20 63 61 72 64 73 | 43 6f 6d 70 6c 65 74 65 |if cards|Complete|
|00005ae0| 28 6c 69 6e 65 4e 6f 29 | 20 69 73 20 66 61 6c 73 |(lineNo)| is fals|
|00005af0| 65 20 74 68 65 6e 0d 70 | 75 74 20 33 20 69 6e 74 |e then.p|ut 3 int|
|00005b00| 6f 20 73 74 61 72 74 50 | 49 43 54 0d 65 6c 73 65 |o startP|ICT.else|
|00005b10| 0d 69 66 20 67 65 74 44 | 61 72 6b 28 29 20 ad 20 |.if getD|ark() . |
|00005b20| 30 20 6f 72 20 73 75 6d | 6d 61 72 79 44 6f 63 28 |0 or sum|maryDoc(|
|00005b30| 29 20 ad 20 22 22 20 74 | 68 65 6e 0d 70 75 74 20 |) . "" t|hen.put |
|00005b40| 34 20 69 6e 74 6f 20 73 | 74 61 72 74 50 49 43 54 |4 into s|tartPICT|
|00005b50| 0d 65 6c 73 65 20 70 75 | 74 20 32 20 69 6e 74 6f |.else pu|t 2 into|
|00005b60| 20 73 74 61 72 74 50 49 | 43 54 0d 65 6e 64 20 69 | startPI|CT.end i|
|00005b70| 66 0d 65 6e 64 20 69 66 | 0d 69 66 20 73 74 61 72 |f.end if|.if star|
|00005b80| 74 50 49 43 54 20 3d 20 | 30 20 74 68 65 6e 20 70 |tPICT = |0 then p|
|00005b90| 75 74 20 31 20 69 6e 74 | 6f 20 73 74 61 72 74 50 |ut 1 int|o startP|
|00005ba0| 49 43 54 0d 73 68 6f 77 | 53 65 71 75 65 6e 63 65 |ICT.show|Sequence|
|00005bb0| 20 77 68 69 63 68 44 49 | 54 4c 2c 6e 6f 4f 66 50 | whichDI|TL,noOfP|
|00005bc0| 69 63 74 73 2c 66 69 72 | 73 74 49 63 6f 6e 2c 73 |icts,fir|stIcon,s|
|00005bd0| 74 61 72 74 50 49 43 54 | 0d 65 6e 64 20 73 68 6f |tartPICT|.end sho|
|00005be0| 77 48 65 6c 70 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |wHelp..f|unction |
|00005bf0| 67 65 74 4c 61 79 6f 75 | 74 20 77 68 69 63 68 41 |getLayou|t whichA|
|00005c00| 63 74 69 6f 6e 0d 67 6c | 6f 62 61 6c 20 66 6f 63 |ction.gl|obal foc|
|00005c10| 75 73 50 72 65 66 2c 6c | 61 73 74 4c 61 79 6f 75 |usPref,l|astLayou|
|00005c20| 74 2c 70 6c 75 67 46 6f | 6c 64 65 72 2c 74 68 65 |t,plugFo|lder,the|
|00005c30| 53 74 61 63 6b 2c 6c 6f | 4e 61 6d 65 73 2c 6c 6f |Stack,lo|Names,lo|
|00005c40| 4d 65 6e 75 2c 20 c2 0d | 61 75 74 6f 53 68 75 66 |Menu, ..|autoShuf|
|00005c50| 66 6c 65 50 72 65 66 2c | 66 6f 63 75 73 50 72 65 |flePref,|focusPre|
|00005c60| 66 2c 6f 70 74 69 6f 6e | 54 65 73 74 2c 64 65 6d |f,option|Test,dem|
|00005c70| 6f 46 6c 61 67 0d 69 66 | 20 74 68 65 20 6e 75 6d |oFlag.if| the num|
|00005c80| 62 65 72 20 6f 66 20 69 | 74 65 6d 73 20 6f 66 20 |ber of i|tems of |
|00005c90| 6c 6f 4e 61 6d 65 73 20 | 3d 20 31 20 74 68 65 6e |loNames |= 1 then|
|00005ca0| 20 72 65 74 75 72 6e 20 | 6c 6f 4e 61 6d 65 73 0d | return |loNames.|
|00005cb0| 70 75 74 20 74 68 65 53 | 74 61 63 6b 20 69 6e 74 |put theS|tack int|
|00005cc0| 6f 20 74 65 6d 70 53 74 | 61 63 6b 0d 70 75 74 20 |o tempSt|ack.put |
|00005cd0| 6e 69 28 6c 6f 4e 61 6d | 65 73 29 20 69 6e 74 6f |ni(loNam|es) into|
|00005ce0| 20 6c 6f 53 0d 69 66 20 | 6c 6f 53 20 3d 20 31 20 | loS.if |loS = 1 |
|00005cf0| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 6c 6f 4e 61 |then ret|urn loNa|
|00005d00| 6d 65 28 31 29 0d 69 66 | 20 77 68 69 63 68 41 63 |me(1).if| whichAc|
|00005d10| 74 69 6f 6e 20 3d 20 22 | 4e 65 77 22 20 74 68 65 |tion = "|New" the|
|00005d20| 6e 0d 70 75 74 20 32 31 | 33 35 20 69 6e 74 6f 20 |n.put 21|35 into |
|00005d30| 64 4c 6f 67 49 44 0d 65 | 6c 73 65 20 69 66 20 77 |dLogID.e|lse if w|
|00005d40| 68 69 63 68 41 63 74 69 | 6f 6e 20 3d 20 22 49 6e |hichActi|on = "In|
|00005d50| 66 6f 22 20 74 68 65 6e | 0d 70 75 74 20 32 31 34 |fo" then|.put 214|
|00005d60| 34 20 69 6e 74 6f 20 64 | 4c 6f 67 49 44 0d 65 6c |4 into d|LogID.el|
|00005d70| 73 65 20 69 66 20 77 68 | 69 63 68 41 63 74 69 6f |se if wh|ichActio|
|00005d80| 6e 20 3d 20 22 53 68 75 | 66 66 6c 65 22 20 74 68 |n = "Shu|ffle" th|
|00005d90| 65 6e 0d 70 75 74 20 32 | 31 34 37 20 69 6e 74 6f |en.put 2|147 into|
|00005da0| 20 64 4c 6f 67 49 44 0d | 65 6c 73 65 20 69 66 20 | dLogID.|else if |
|00005db0| 77 68 69 63 68 41 63 74 | 69 6f 6e 20 3d 20 22 4f |whichAct|ion = "O|
|00005dc0| 70 65 6e 22 20 74 68 65 | 6e 0d 70 75 74 20 32 31 |pen" the|n.put 21|
|00005dd0| 34 31 20 69 6e 74 6f 20 | 64 4c 6f 67 49 44 0d 65 |41 into |dLogID.e|
|00005de0| 6c 73 65 20 65 78 69 74 | 20 74 6f 20 68 79 70 65 |lse exit| to hype|
|00005df0| 72 43 61 72 64 0d 69 66 | 20 77 68 69 63 68 41 63 |rCard.if| whichAc|
|00005e00| 74 69 6f 6e 20 3d 20 22 | 49 6e 66 6f 22 20 74 68 |tion = "|Info" th|
|00005e10| 65 6e 0d 69 66 20 22 3a | 22 20 69 73 20 6e 6f 74 |en.if ":|" is not|
|00005e20| 20 69 6e 20 6c 6f 4d 65 | 6e 75 20 74 68 65 6e 20 | in loMe|nu then |
|00005e30| 70 75 74 20 22 22 20 69 | 6e 74 6f 20 6c 6f 4d 65 |put "" i|nto loMe|
|00005e40| 6e 75 0d 70 75 74 20 6d | 53 74 72 69 6e 67 28 31 |nu.put m|String(1|
|00005e50| 31 29 20 69 6e 74 6f 20 | 74 0d 70 75 74 20 6d 53 |1) into |t.put mS|
|00005e60| 74 72 69 6e 67 28 31 32 | 29 20 69 6e 74 6f 20 61 |tring(12|) into a|
|00005e70| 63 74 69 6f 6e 54 0d 65 | 6c 73 65 20 69 66 20 77 |ctionT.e|lse if w|
|00005e80| 68 69 63 68 41 63 74 69 | 6f 6e 20 3d 20 22 53 68 |hichActi|on = "Sh|
|00005e90| 75 66 66 6c 65 22 20 74 | 68 65 6e 0d 69 66 20 22 |uffle" t|hen.if "|
|00005ea0| 43 61 6c 63 75 6c 61 74 | 65 64 22 20 69 73 20 69 |Calculat|ed" is i|
|00005eb0| 6e 20 6c 6f 4d 65 6e 75 | 20 74 68 65 6e 20 70 75 |n loMenu| then pu|
|00005ec0| 74 20 22 22 20 69 6e 74 | 6f 20 6c 6f 4d 65 6e 75 |t "" int|o loMenu|
|00005ed0| 0d 70 75 74 20 6d 53 74 | 72 69 6e 67 28 31 33 29 |.put mSt|ring(13)|
|00005ee0| 20 69 6e 74 6f 20 74 0d | 70 75 74 20 6d 53 74 72 | into t.|put mStr|
|00005ef0| 69 6e 67 28 31 34 29 20 | 69 6e 74 6f 20 61 63 74 |ing(14) |into act|
|00005f00| 69 6f 6e 54 0d 65 6c 73 | 65 20 69 66 20 77 68 69 |ionT.els|e if whi|
|00005f10| 63 68 41 63 74 69 6f 6e | 20 3d 20 22 4e 65 77 22 |chAction| = "New"|
|00005f20| 20 74 68 65 6e 0d 69 66 | 20 22 3a 22 20 69 73 20 | then.if| ":" is |
|00005f30| 6e 6f 74 20 69 6e 20 6c | 6f 4d 65 6e 75 20 74 68 |not in l|oMenu th|
|00005f40| 65 6e 20 70 75 74 20 22 | 22 20 69 6e 74 6f 20 6c |en put "|" into l|
|00005f50| 6f 4d 65 6e 75 0d 69 66 | 20 61 75 74 6f 53 68 75 |oMenu.if| autoShu|
|00005f60| 66 66 6c 65 50 72 65 66 | 20 74 68 65 6e 0d 69 66 |fflePref| then.if|
|00005f70| 20 66 6f 63 75 73 50 72 | 65 66 20 74 68 65 6e 0d | focusPr|ef then.|
|00005f80| 67 65 74 20 6d 53 74 72 | 69 6e 67 28 31 35 29 0d |get mStr|ing(15).|
|00005f90| 65 6c 73 65 20 67 65 74 | 20 6d 53 74 72 69 6e 67 |else get| mString|
|00005fa0| 28 31 36 29 0d 65 6c 73 | 65 0d 69 66 20 66 6f 63 |(16).els|e.if foc|
|00005fb0| 75 73 50 72 65 66 20 74 | 68 65 6e 0d 67 65 74 20 |usPref t|hen.get |
|00005fc0| 6d 53 74 72 69 6e 67 28 | 31 37 29 0d 65 6c 73 65 |mString(|17).else|
|00005fd0| 20 67 65 74 20 6d 53 74 | 72 69 6e 67 28 31 38 29 | get mSt|ring(18)|
|00005fe0| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 6d 53 74 72 |.end if.|put mStr|
|00005ff0| 69 6e 67 28 31 39 29 20 | 26 20 69 74 20 26 20 6d |ing(19) |& it & m|
|00006000| 53 74 72 69 6e 67 28 32 | 30 29 20 69 6e 74 6f 20 |String(2|0) into |
|00006010| 74 0d 70 75 74 20 6d 53 | 74 72 69 6e 67 28 32 31 |t.put mS|tring(21|
|00006020| 29 20 69 6e 74 6f 20 61 | 63 74 69 6f 6e 54 0d 65 |) into a|ctionT.e|
|00006030| 6c 73 65 20 69 66 20 77 | 68 69 63 68 41 63 74 69 |lse if w|hichActi|
|00006040| 6f 6e 20 3d 20 22 4f 70 | 65 6e 22 20 74 68 65 6e |on = "Op|en" then|
|00006050| 0d 69 66 20 22 3a 22 20 | 69 73 20 69 6e 20 6c 6f |.if ":" |is in lo|
|00006060| 4d 65 6e 75 20 74 68 65 | 6e 20 70 75 74 20 22 22 |Menu the|n put ""|
|00006070| 20 69 6e 74 6f 20 6c 6f | 4d 65 6e 75 0d 70 75 74 | into lo|Menu.put|
|00006080| 20 6d 53 74 72 69 6e 67 | 28 32 32 29 20 69 6e 74 | mString|(22) int|
|00006090| 6f 20 74 0d 70 75 74 20 | 6d 53 74 72 69 6e 67 28 |o t.put |mString(|
|000060a0| 32 33 29 20 69 6e 74 6f | 20 61 63 74 69 6f 6e 54 |23) into| actionT|
|000060b0| 0d 65 6e 64 20 69 66 0d | 69 66 20 6c 6f 53 20 3d |.end if.|if loS =|
|000060c0| 20 30 20 74 68 65 6e 0d | 64 65 6c 65 74 65 20 74 | 0 then.|delete t|
|000060d0| 68 65 20 6c 61 73 74 20 | 77 6f 72 64 20 6f 66 20 |he last |word of |
|000060e0| 61 63 74 69 6f 6e 54 0d | 73 68 6f 77 51 75 69 74 |actionT.|showQuit|
|000060f0| 20 33 36 2c 6d 6c 28 61 | 63 74 69 6f 6e 54 29 0d | 36,ml(a|ctionT).|
|00006100| 65 78 69 74 20 74 6f 20 | 68 79 70 65 72 43 61 72 |exit to |hyperCar|
|00006110| 64 0d 65 6e 64 20 69 66 | 0d 69 66 20 6c 6f 4d 65 |d.end if|.if loMe|
|00006120| 6e 75 20 3d 20 22 22 20 | 6f 72 20 64 65 6d 6f 46 |nu = "" |or demoF|
|00006130| 6c 61 67 20 3d 20 54 52 | 55 45 20 74 68 65 6e 0d |lag = TR|UE then.|
|00006140| 77 61 69 74 43 75 72 73 | 6f 72 0d 6d 61 6b 65 4d |waitCurs|or.makeM|
|00006150| 65 6e 75 53 74 72 69 6e | 67 20 77 68 69 63 68 41 |enuStrin|g whichA|
|00006160| 63 74 69 6f 6e 0d 65 6e | 64 20 69 66 0d 69 66 20 |ction.en|d if.if |
|00006170| 64 65 6d 6f 46 6c 61 67 | 20 3d 20 54 52 55 45 20 |demoFlag| = TRUE |
|00006180| 61 6e 64 20 77 68 69 63 | 68 41 63 74 69 6f 6e 20 |and whic|hAction |
|00006190| 3d 20 22 4e 65 77 22 20 | 74 68 65 6e 0d 67 6c 6f |= "New" |then.glo|
|000061a0| 62 61 6c 20 64 65 6d 6f | 50 6c 75 67 0d 67 65 74 |bal demo|Plug.get|
|000061b0| 20 64 65 6d 6f 50 6c 75 | 67 0d 65 6c 73 65 20 67 | demoPlu|g.else g|
|000061c0| 65 74 20 6c 61 73 74 4c | 61 79 6f 75 74 0d 70 75 |et lastL|ayout.pu|
|000061d0| 74 20 6e 69 28 63 68 61 | 72 20 31 20 74 6f 20 6f |t ni(cha|r 1 to o|
|000061e0| 66 66 73 65 74 28 69 74 | 20 26 20 22 2c 22 2c 28 |ffset(it| & ",",(|
|000061f0| 6c 6f 4d 65 6e 75 20 26 | 20 22 2c 22 29 29 20 c2 |loMenu &| ",")) .|
|00006200| 0d 6f 66 20 6c 6f 4d 65 | 6e 75 29 20 69 6e 74 6f |.of loMe|nu) into|
|00006210| 20 64 0d 69 66 20 64 20 | 3d 20 30 20 6f 72 20 6c | d.if d |= 0 or l|
|00006220| 61 73 74 4c 61 79 6f 75 | 74 20 3d 20 22 22 20 74 |astLayou|t = "" t|
|00006230| 68 65 6e 0d 69 66 20 77 | 68 69 63 68 41 63 74 69 |hen.if w|hichActi|
|00006240| 6f 6e 20 69 73 20 69 6e | 20 22 4e 65 77 2c 49 6e |on is in| "New,In|
|00006250| 66 6f 22 20 74 68 65 6e | 0d 67 65 74 20 32 0d 65 |fo" then|.get 2.e|
|00006260| 6c 73 65 20 67 65 74 20 | 31 0d 70 75 74 20 69 74 |lse get |1.put it|
|00006270| 20 69 6e 74 6f 20 64 65 | 66 61 75 6c 74 4c 61 79 | into de|faultLay|
|00006280| 6f 75 74 45 6e 74 72 79 | 0d 65 6c 73 65 20 70 75 |outEntry|.else pu|
|00006290| 74 20 64 20 69 6e 74 6f | 20 64 65 66 61 75 6c 74 |t d into| default|
|000062a0| 4c 61 79 6f 75 74 45 6e | 74 72 79 0d 72 65 70 65 |LayoutEn|try.repe|
|000062b0| 61 74 0d 73 68 6f 77 44 | 69 61 6c 6f 67 7a 20 34 |at.showD|ialogz 4|
|000062c0| 2c 64 6c 6f 67 49 44 2c | 74 2c 22 22 2c 22 22 2c |,dlogID,|t,"","",|
|000062d0| 6c 6f 4d 65 6e 75 2c 64 | 65 66 61 75 6c 74 4c 61 |loMenu,d|efaultLa|
|000062e0| 79 6f 75 74 45 6e 74 72 | 79 0d 70 75 74 20 74 68 |youtEntr|y.put th|
|000062f0| 65 20 72 65 73 75 6c 74 | 20 69 6e 74 6f 20 69 0d |e result| into i.|
|00006300| 70 75 74 20 28 74 68 65 | 20 6f 70 74 69 6f 6e 4b |put (the| optionK|
|00006310| 65 79 20 69 73 20 64 6f | 77 6e 29 20 69 6e 74 6f |ey is do|wn) into|
|00006320| 20 6f 70 74 69 6f 6e 54 | 65 73 74 0d 69 66 20 22 | optionT|est.if "|
|00006330| 21 22 20 69 73 20 69 6e | 20 6c 69 6e 65 20 31 20 |!" is in| line 1 |
|00006340| 6f 66 20 69 20 74 68 65 | 6e 0d 73 68 6f 77 45 72 |of i the|n.showEr|
|00006350| 72 6f 72 20 31 39 2c 6d | 6c 28 77 68 69 63 68 41 |ror 19,m|l(whichA|
|00006360| 63 74 69 6f 6e 2c 69 29 | 0d 65 78 69 74 20 74 6f |ction,i)|.exit to|
|00006370| 20 68 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | hyperCa|rd.end i|
|00006380| 66 0d 69 66 20 69 20 3d | 20 22 22 20 74 68 65 6e |f.if i =| "" then|
|00006390| 0d 69 66 20 77 68 69 63 | 68 41 63 74 69 6f 6e 20 |.if whic|hAction |
|000063a0| 69 73 20 69 6e 20 22 49 | 6e 66 6f 2c 53 68 75 66 |is in "I|nfo,Shuf|
|000063b0| 66 6c 65 22 20 74 68 65 | 6e 0d 72 65 74 75 72 6e |fle" the|n.return|
|000063c0| 20 22 22 0d 65 6c 73 65 | 20 65 78 69 74 20 74 6f | "".else| exit to|
|000063d0| 20 68 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | hyperCa|rd.end i|
|000063e0| 66 0d 69 66 20 22 5e 22 | 20 69 73 20 69 6e 20 69 |f.if "^"| is in i|
|000063f0| 20 74 68 65 6e 20 64 65 | 6c 65 74 65 20 63 68 61 | then de|lete cha|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.